1.

Which feature of OOP indicates code reusability?(a) Encapsulation(b) Inheritance(c) Abstraction(d) PolymorphismThe question was asked in an interview for internship.Query is from OOPs Features topic in section OOPs Concept & Features of Object Oriented Programming

Answer»

Correct option is (b) Inheritance

Easy EXPLANATION - Inheritance indicates the code reusability. Encapsulation and ABSTRACTION are meant to hide/group data into one element. POLYMORPHISM is to INDICATE different tasks performed by a single entity.



Discussion

No Comment Found

Related InterviewSolutions