mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-11 15:51:26 +00:00
25 lines
378 B
Java
Vendored
25 lines
378 B
Java
Vendored
package test;
|
|
|
|
public class OverrideMethod {
|
|
class SuperBase {
|
|
void quux(int x) {}
|
|
}
|
|
|
|
class Base extends SuperBase {
|
|
String foo(String s) {
|
|
return s;
|
|
}
|
|
|
|
void bar() {}
|
|
}
|
|
|
|
class Derived extends Base {
|
|
@Override
|
|
String foo(String s) {
|
|
return null;
|
|
}
|
|
|
|
void baz() {}
|
|
}
|
|
}
|