<<< More things to watch out for | Index | Inheritance and Polymorphism >>> |
Extend functionality of base class with new members.
Provide identical functionality, but enforce
additional constraints on state or inputs
use alternative algorithms, etc.
Incorporate useful behavior by privately deriving from a base class, but redefine the public interface of the derived class. Thus, derived class becomes an adaptor of the base class.
<<< More things to watch out for | Index | Inheritance and Polymorphism >>> |