mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
19 lines
278 B
Java
19 lines
278 B
Java
|
|
class A {
|
|
public boolean foo() {
|
|
return Math.random() > 0.5;
|
|
}
|
|
}
|
|
|
|
class B extends A {
|
|
@Override
|
|
public boolean foo() {
|
|
if (!super.foo()) {
|
|
return false;
|
|
}
|
|
return Math.random() > 0.5;
|
|
}
|
|
}
|
|
|
|
class Test extends B {
|
|
} |