Skip to content

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

Notifications You must be signed in to change notification settings

saif86/Specialization-using-Private-Inheritance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages