1.

Which feature of OOP is exhibited by the function overriding?(a) Inheritance(b) Abstraction(c) Polymorphism(d) EncapsulationI have been asked this question during a job interview.This intriguing question originated from Overriding Member Functions topic in chapter Member Functions & its Types of Object Oriented Programming

Answer»

Right option is (C) Polymorphism

To explain: The polymorphism feature is exhibited by function OVERRIDING. Polymorphism is the feature which basically DEFINES that same NAMED functions can have more than one functionalities.



Discussion

No Comment Found

Related InterviewSolutions