/Specialization-using-Private-Inheritance

In specialization the derived class is behaviorally incompatible with the base class.

Primary LanguageC++

Specialization-using-Private-Inheritance

In specialization, the derived class is behaviourly incompatible with the base class.


Problem Statement

Derive a specialized Adult class from a Person class such that age can be restricted between 18 and 125 for the Adult class. Rest of the implementation is based on Person class.

oop lecture 19