 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
The
good news is that
|
|
|
|
• |
member
functions defined in the public section
|
|
|
can
use, return, or modify the contents of any
|
|
|
|
of
the data members, directly
|
|
|
|
• |
it
is best to assume that member functions are
|
|
|
|
the only
way to work with private data
|
|
|
|
• |
(there
are “friends” but don’t use them this term)
|
|
|
|
• |
Think
of the member functions and private
|
|
|
|
data
as working together as a team
|
|