C++ Inheritance & Polymorphism: Constructors, Destructors, & Inheritance

C++    |    Intermediate
  • 11 videos | 1h 24m 2s
  • Includes Assessment
  • Earns a Badge
The order in which constructors and destructors are invoked on an object of a derived class in an inheritance hierarchy is a very important topic. Constructors are invoked in order from the top-most (most base-level) class, down to the most derived class. Destructors are invoked in the reverse order. Explore how constructors work in an inheritance hierarchy, the order in which the base and derived class constructors are invoked, and how initialization lists need to be used in the derived class. Discover how to use copy constructors and destructors in the context of inheritance. Learn how to set up an inheritance hierarchy for polymorphism. Finally, practice using objects in an inheritance hierarchy with variables of pointer and reference types. When you finish this course, you will have a solid foundation in constructors, destructors, and inheritance, setting the stage for runtime polymorphism and dynamic method dispatch.


  • Discover the key concepts covered in this course
    Compare constructors in base classes and derived classes
    Invoke base class constructors from derived classes
    Access base class fields from the child class
    Recall that constructors are not inherited
    Work with copy constructors in inheritance hierarchies
  • Work with destructors in inheritance hierarchies
    Set up an inheritance hierarchy for polymorphism
    Create pointers to derived and base class objects
    Create references to derived and base class objects
    Summarize the key concepts covered in this course


  • 1m 41s
  • 7m 45s
  • Locked
    3.  Using Base Class Constructors in Child Classes
    10m 24s
  • Locked
    4.  Accessing Base Class Fields from the Child Class
    7m 14s
  • Locked
    5.  Using Base Class Constructors in Derived Classes
    8m 36s
  • Locked
    6.  Using Copy Constructors in Inheritance
    9m 13s
  • Locked
    7.  Using Destructors in Inheritance
    10m 7s
  • Locked
    8.  Setting up an Inheritance Hierarchy for Polymorphism
    9m 8s
  • Locked
    9.  Creating Pointers with Inheritance
    9m 27s
  • Locked
    10.  Creating References with Inheritance
  • Locked
    11.  Course Summary
    2m 26s


Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.