___________ allows objects of different classes to be treated as objects of a common superclass.

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
Polymorphism refers to the ability of different classes to be treated as objects of a common superclass through method overriding and method overloading. It allows for code flexibility and reusability by enabling the use of a single interface to represent different data types or objects.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *