<<< | Index | >>> |
Data members give you an implicit interface.
Member functions provide explicit interface carefully chosen by a programmer.
Encapsulation controls both the explicit and the implicit interface to your object.
Therefore, if you accept free "gifts" from the compiler
(read: implicit interface)...
...be sure you really want them!
<<< | Index | >>> |