Concepts Behind Inheritance

Like human inheritance, only backwards-ish...

Basic Use of Inheritance

Example code from lecture...

When Things Get Weird

Derived class functions of identical signature override the parent class' versions.

Derived class functions of different signatures hide the parent class' versions.

Skipping a generation to override or hide.

Notice how a derived class' objects used via a base class reference or pointer behave as if they were base objects.