Object Oriented Programming
20
Accessing Data Members
•
Data members are available within each
method (as if they were local variables).
•
•
Public data members can be accessed by
other functions using the member access
operator ".".