10 lines
183 B
TypeScript
10 lines
183 B
TypeScript
|
class A {
|
||
|
constructor(public text: string) { }
|
||
|
}
|
||
|
|
||
|
class B extends A {
|
||
|
constructor(text: string) {
|
||
|
// this is subclass constructor
|
||
|
super(text)
|
||
|
}
|
||
|
}
|