Inheritance is a fundamental Object Oriented concept. Dynamic Objects implements inheritance in 2 ways:
- Class Inheritance: Inheriting the properties* and methods from one or more parent classes
- Object Inheritance: Inheriting the properties and methods from one or more objects**
* Properties are only inherited from the constructor of the inherited class
** When we refer to an object this can be an array as well.
Inheritance is recursive, meaning that an object can inherit properties and methods from other objects or classes and those classes can, in turn, inherit properties and methods from other classes, and so on. This is illustrated in the following topics: