Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 1.37 KB

File metadata and controls

10 lines (8 loc) · 1.37 KB

Inheritance

The idea of inheritance is central to Object Oriented Programming. Javascript has its own fame in prototypal inheritance. The code samples in the folder named inheritance show cases different ways of achieving inheritance behavior (aka behavior delegation) in Javascript.

The following inheritance patterns are illustrated in inheritance folder:

Inheritance variant Sample code
Prototypal Inheritance example 1
example 2
ES6 class based Inheritance example 1
example 2
Objects Linked To Other Objects Delegation example 1
example 2