Private vs. Public
•Classes define certain parts of
the object they define to be public, private, or protected.
•Public parts of the
object can be used by anyone who has access to the
object.
•The private parts of the
object are for the objects internal use only.
• Protected parts are accessible from
outside the object only under certain circumstances.
•Try to make as much private as possible.