Classes can inherit from another
extend an old style
"class", a function, still works
prototypes are as you know them
A is the prototype of B
As prototype is also B
s prototype
extends
using an expression
e.g. the inline assignment of the parent class
or calling a function that returns the parent class
Related Katas
Class
- creation
- accessors
- static
- extends
- more extends
- super in method
- super in constructor
Difficulty Level
ADVANCED
First Published
20 April 2015
Stats
5 tests to solve