 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
With
data hiding
|
|
|
|
• |
accessing
the data is restricted to authorized
|
|
|
functions
|
|
|
|
• |
“clients”
(e.g., main program) can’t muck with
|
|
|
the
data directly
|
|
|
|
• |
this
is done by placing the data members in the
|
|
private
section
|
|
|
|
• |
and,
placing member functions to access &
|
|
|
modify
that data in the public section
|
|