... 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"
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:
- C++ programmers do it with private members and public
objects... - C++ Programmers are proud of their Private
Parts... - C++ --
The language in which only friends can access your... - I wave my private parts
at your... - I wave my private parts at you,
you stupid englishman... - Some people have parts that are so private
they themselves
have no knowledge of them... - Band members do it in
public... - We call some parts of our body "private",
yet they're the ones we most enjoy saving...
From the same category:
- Positively NO TAGS ALLOWED
HERE!!!!... - We have only 2 things to worry about: That things will never get back
to normal,
and that they already have... - I am Koresh of Borg,
we will be incinerated... - I'll believe it,
when I believe it... - Can any man have a higher notion of the rule of right and the eternal
fitness of things?
Henry Fielding (1707-1754) -- Tom Jones, Book iv,...
