| |
|
This module explores the fundamentals of inheritance and pure polymorphism, including the use of derived classes and virtual functions
to create a class hierarchy.
You will learn:
-
What inheritance is and why it is so important to the object-oriented programming paradigm
-
What virtual member functions are and how they are used
-
How to derive a class from a base class and create a class hierarchy
-
How public inheritance implements an ISA relationship between a derived class and the base class
-
How a reference to the derived class may be implicitly converted to a reference to the public base class
-
What pure virtual functions are and why they are useful in creating abstract base classes
-
The uses of the C++-specific cast operators
-
How to use Runtime Type Identification (RTTI) to safely determine the type pointed at by a base class pointer at runtime
-
How to code exceptions to catch unexpected conditions
|