219: Highlights
- Inadvertent member-variable references and assignments via the
class-member operator can destroy your effort to practice data abstraction.
- You can prevent inadvertent direct access to member variables by moving
their declarations into the private part of the class definition.
- Member functions in general, and constructors, readers, and
writers in particular, have complete access to all member variables, public
and private.
- The member variables and member functions in the public part of a class
definition constitute the class's public interface.
- The publicprivate dichotomy helps to ensure that you can
benefit from data abstraction.