Which of the following best describes inheritance in JavaScript?
Creating a new class from a string
Sharing properties and methods between objects of the same type
Deriving a new class from an existing class to reuse code
Encapsulating object properties
This question is part of this quiz :
OOP in JavaScript