Take Up Code
25: Inheritance. Overriding Methods.

25: Inheritance. Overriding Methods.

Take Up Code

12:49

About this episode

Declaring that a class is another class type is only part of the reason to use inheritance. It is actually much more powerful than just allowing you to refer to a group of different class instances all by some common base type. When you create a new class that derives from a base class, you can actually change the behavior of the base class methods to adapt them to the specific needs of the new derived class.

More from Take Up Code

This is the first in a series of comments about the book “How To Code C++ From a Simple Idea To a Game You’ll Understand!” Each episode will be short and focused. You can watch the video versions on Y…

1m