Which feature of OOP indicates code reusability?
(A)
Abstraction
(B)
Polymorphism
(C)
Encapsulation
(D)
Inheritance
Answer: (D)
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.
Quiz of this Question
Please comment below if you find anything wrong in the above post