<<< Virtual destructors | Index | Pure interfaces >>> |
Inheritance of implementation:
Base class provides some useful functionality (and sometimes data).
Remember: encapsulation is your friend.
Inheritance of interface:
Base class specifies common interface for a collection of types that will be used together.
Consider using abstract base class.
A good way to really hide implementation.
<<< Virtual destructors | Index | Pure interfaces >>> |