20 lines
218 B
Plaintext
20 lines
218 B
Plaintext
|
class A {
|
||
|
method() {
|
||
|
print "A method";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class B < A {
|
||
|
method() {
|
||
|
print "B method";
|
||
|
}
|
||
|
|
||
|
test() {
|
||
|
this.method();
|
||
|
super.method();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class C < B {}
|
||
|
C().test();
|