Skip to content
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
@kodenix

Description

@kodenix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions