Which of the following concepts allows a single interface to represent different methods in derived classes?

  • Abstraction
  • Encapsulation
  • Inheritance
  • Polymorphism
Polymorphism allows a single interface or method name to represent different implementations in derived classes. It enables flexibility and dynamic method dispatch in object-oriented programming.
Add your answer
Loading...

Leave a comment

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