The process of an object inheriting properties and behaviors (methods) from its prototype is known as _________.

  • Encapsulation
  • Inheritance
  • Polymorphism
  • Abstraction
Inheritance is the process by which an object inherits properties and behaviors (methods) from its prototype or parent object. JavaScript uses a prototype-based inheritance model, where objects inherit from other objects, and this is a fundamental concept in the language.
Add your answer
Loading...

Leave a comment

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