cpp inheritanceInheritance

Inheritance

Learn C++ in step-by-step lessons.


Inheritance is deriving a child or sub-class from a parent or base class.

Please study the material at each of the links below.

  1. A Pet isa Animal A Pet isa Animal
  2. An Animal has (private) legs and wings An Animal has (private) legs and wings
  3. Animal and Pet both have name and family Animal and Pet both have name and family
GlossaryGlossary for inheritance lesson
Full Glossary