16 lines
No EOL
225 B
Text
16 lines
No EOL
225 B
Text
// Call method that has been overridden (both the new and old one)
|
|
|
|
class Other {
|
|
void method() {}
|
|
}
|
|
|
|
class Main extends Other {
|
|
void main() {
|
|
Other o;
|
|
method();
|
|
o = (Other) this;
|
|
o.method();
|
|
}
|
|
|
|
void method() {}
|
|
} |