mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
18 lines
270 B
Java
18 lines
270 B
Java
class T1 {
|
|
int method(int i) {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
class T2 extends T1 {
|
|
int method(int i, int anObject) {
|
|
return anObject;
|
|
}
|
|
}
|
|
|
|
class Usage {
|
|
int m() {
|
|
final T2 t2 = new T2();
|
|
return t2.method(0, t2.method(0) + 1);
|
|
}
|
|
} |