Web anvari.org
Anvari.Org
» Anvari.Org

C++ offers even more flexible control over the visibility of member objects and member functions.

... C++ offers even more flexible control over the visibility of member
objects and member functions. Specifically, members may be placed in the
public, private, or protected parts of a class. Members declared in the
public parts are visible to all clients; members declared in the private
parts are fully encapsulated; and members declared in the protected parts
are visible only to the class itself and its subclasses. C++ also supports
the notion of *friends*: cooperative classes that are permitted to see each
other's private parts.
-- Grady Booch, "Object Oriented Design with Applications"

Related:

From the same category:




Retrieved from http://www.anvari.org/fortune/Miscellaneous_Collections/371682_c-offers-even-more-flexible-control-over-the-visibility-of-member-objects-and-member-functions.html