ES6 and Typescript Tutorial - 23 - Class Inheritance

preview_player
Показать описание

📱 Follow Codevolution

ES6 | ES2015 | Typescript | ES6 Tutorial | ES2015 Tutorial | Typescript Tutorial | ES6 Tutorial for Beginners | ES2015 Tutorial for Beginners | Typescript tutorial for Beginners
Рекомендации по теме
Комментарии
Автор

in js, child class need not have - even a parameterised constructor, though parent class has.
but if class had a parameterised constructor, then super() required as usual.

vigneshgvs
Автор

It sad : Error - At least one public class is required in main file

kwanpoyiu
Автор

wat if we want to getID's from both classes? like printing 10 and 50 after names

sunilabhishek
Автор

how would you access getID if you were 2 deep on the inheritance? Meaning person -> employee -> manager. super.getID calls employee method, how do you call one in person?

IconicProps
welcome to shbcf.ru