Declaration and Usage
C++ classes have their own members. These members include variables (including other structures and classes), functions (specific identifiers or overloaded operators) known as methods, constructors and destructors. Members are declared to be either publicly or privately accessible using the public:
and private:
access specifiers respectively. Any member encountered after a specifier will have the associated access until another specifier is encountered. There is also inheritance between classes which can make use of the protected:
specifier.
Read more about this topic: C++ Classes
Famous quotes containing the words declaration and/or usage:
“Every declaration of love contains an unstated list of exceptions and demands.”
—Mason Cooley (b. 1927)
“I am using it [the word perceive] here in such a way that to say of an object that it is perceived does not entail saying that it exists in any sense at all. And this is a perfectly correct and familiar usage of the word.”
—A.J. (Alfred Jules)