Inside a class use super
to access parent methods
use of super
without extends
fails (already when transpiling)
super
with extends
calls the method of the given name of the parent class
when overridden a method does NOT automatically call its super method
super
works across any number of levels of inheritance
accessing an undefined member of the parent class returns undefined
Related Katas
Class
- creation
- accessors
- static
- extends
- more extends
- super in method
- super in constructor
Difficulty Level
INTERMEDIATE
First Published
21 April 2015
Stats
5 tests to solve