Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Add friend #13

Open
ajRiverav opened this issue Nov 21, 2017 · 3 comments
Open

Add friend #13

ajRiverav opened this issue Nov 21, 2017 · 3 comments

Comments

@ajRiverav
Copy link
Owner

No description provided.

@ajRiverav
Copy link
Owner Author

use example of many humans (a class) sharing the count of humans. If the count is low, they are cowards when it comes to fighting. Thus the need for the count to be static (a class-wide data).

@ajRiverav
Copy link
Owner Author

use a static data member (private) and a static getter (public).

@ajRiverav
Copy link
Owner Author

show that one HAS to initialize it a file-scope.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant