In this tutorial you will learn:
1. What is over-riding of a function?
2. Why to over-riding a function?
3. How to over-ride a function in a program?
4. Basic C++ syntax
What is meant by over-riding a function?
By over-riding a function it means that we add some extra functionality in the function which is present in the derived class and that function has the name same as that of the base class function. By overriding a function we basically redefine a function in the derived class that is already present in the base class.
Why to over-ride a function