<<< Resolving overloaded function calls example | Index | Access control declarations >>> |
Encapsulation means we want to restrict use to a chosen interface...
...and not allow a use based on implementation
Restrictions should be enforced by the compiler...
...by making violations to become compiler errors
The rules of the language prevent accidents, not malice!
New keywords: public and private
<<< Resolving overloaded function calls example | Index | Access control declarations >>> |