1.

Which Feature of OOP illustrated the code reusability?(a) Polymorphism(b) Abstraction(c) Encapsulation(d) InheritanceI got this question in an online quiz.This key question is from OOPs Basic Concepts in chapter OOPs Concept & Features of Object Oriented Programming

Answer»

Right answer is (d) Inheritance

The explanation is: USING inheritance we can reuse the code already written and ALSO can avoid creation of MANY new functions or VARIABLES, as that can be done one time and be REUSED, using classes.



Discussion

No Comment Found

Related InterviewSolutions