January 2017
Beginner to intermediate
550 pages
10h 6m
English
In this chapter, you learned quite a few ways (patterns) of implementing inheritance, and the following table summarizes them. The different types can roughly be divided into the following:
You can also classify the patterns based on whether they:
|
# |
Name |
Example |
Classification |
Notes |
|---|---|---|---|---|
|
1 |
Prototype chaining
(pseudo-classical)
|
Child.prototype = new Parent();
|
|
|
|
2 |
Inherit only the prototype ... |
Read now
Unlock full access