C++Tutorial for Beginners 51 - Inheritance

Inheritance is one of the building blocks of object-orientation, allowing you to create classes that extend or change the functionality of existing classes. For example, if you're writing an application that uses a window class from a C++ library, you can create a new class which inherits functionality from the old class, but extends and customises it to create your own application window.