OOP using C++
Inheritance
, Inheritance
In C++
Inheritance is a mechanism for
• building class types from other class types
• defining new class types to be a
– specialization
– augmentation
of existing types
, Inheritance
Subgroupings with respect to a parent are called
– Subclass
– Derived Class
– Children
The derived class
– inherits from the parent all
• characteristics
• properties
• capabilities
– can modify or extend inherited abilities