Overriding
In this lesson, we'll be learning about how overriding is done in C++.
We'll cover the following
In object-oriented programming when we allow a subclass or child class to provide a specific implementation of a method that is already provided by one of its superclasses or parent classes is known as Function Overriding.
getArea()
Overridden Function
As you have already seen the implementation of the function getArea() in the previous lesson, which depicts the concept of overriding.
Get hands-on with 1400+ tech skills courses.