mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
20 lines
240 B
JavaScript
20 lines
240 B
JavaScript
class Base {
|
|
superMethod() {
|
|
return 'good';
|
|
}
|
|
}
|
|
|
|
class Sub extends Base {
|
|
superMethod() {
|
|
return 'bad';
|
|
}
|
|
|
|
#privateMethod() {
|
|
return super.superMethod();
|
|
}
|
|
|
|
publicMethod() {
|
|
return this.#privateMethod();
|
|
}
|
|
}
|