Lecture overview -- Keyboard shortcut: 'u'  Previous page: Inheritance in C++ -- Keyboard shortcut: 'p'  Next page: Inheritance: Copying and slicing -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Abstraction Mechanisms, Part 2 - slide 2 : 24

Inheritance: Constructors and destructors

Constructors in class hierarchies work as expected in C++

single-1.cc
Constructors and single inheritance.
multiple-1.cc
Constructors and multiple inheritance.
multiple-2.cc
Constructors and multiple inheritance - implicit activation of default constructor in Base.
multiple-4.cc
Constructors and multiple inheritance - order of construction and destruction.
multiple-5.cc
Constructors and multiple inheritance - order of construction and destruction.