Question

Which of the following is the primary reason why polymorphism is useful in Object-Oriented Programming (OO

  • P ?
A It allows data to be encapsulated within objects
B It facilitates the inheritance of methods and attributes from parent classes
C It provides a way for objects of different classes to be treated as objects of a common superclass
D It helps in reducing redundancy by eliminating the need for multiple constructors
E It enables objects to be compared efficiently for equality
Practice Next

Hey! Ask a query