The concept of creating a single function or method that can operate on multiple types of objects is known as _________.

  • Overloading
  • Inheritance
  • Polymorphism
  • Abstraction
The concept of creating a single function or method that can operate on multiple types of objects is known as "Polymorphism." In JavaScript, polymorphism can be achieved through method overriding and dynamic method binding, enabling different objects to respond to the same method in a way that suits their specific type.
Add your answer
Loading...

Leave a comment

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