C++ Inheritance Question:
Download Questions PDF

Explain about overriding?

C++ Inheritance Interview Question
C++ Inheritance Interview Question

Answer:

Defining a function in the derived class with same name as in the parent class is called overriding. In C++, the base class member can be overridden by the derived class function with the same signature as the base class function. Method overriding is used to provide different implementations of a function so that a more specific behavior can be realized.

Download C++ Inheritance Interview Questions And Answers PDF

Previous QuestionNext Question
Explain pure virtual functions?Explain the difference between Overriding vs. overloading?