15 lines
No EOL
241 B
TypeScript
15 lines
No EOL
241 B
TypeScript
class BaseClass {
|
|
constructor() {
|
|
this._init();
|
|
}
|
|
private _init() {
|
|
}
|
|
}
|
|
class DerivedClass extends BaseClass {
|
|
constructor() {
|
|
super();
|
|
}
|
|
private _init() {
|
|
}
|
|
}
|
|
new DerivedClass(); |