This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Inheritance section covers overriding, not inheritance #670
Open
Description
Hello, i learning the typescript tutorial and the example with inheritance is confusing but not exist a example using the method of mother class directily without defined other method with the same name. This can cause confusing a otros, i suggest show a example simple o f inherit if is possible.
Example:
class Mother {
protected talk(){
console.log('Hello');
}
}
class Child extends Mother {
}
let child=new Child();
child.talk();
Best reggards