Zebra0.com

cpp inheritanceInheritance: Deriving a child or sub-class from a parent or base class.

Inheritance: Deriving a child or sub-class from a parent or base class.

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

Inheritance: Deriving a child or sub-class from a parent or base class.

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

Goals:

Objectives:

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