You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classA {
voidfoo() {
System.out.println("A.foo");
}
}
classBextendsA {
@Overridevoidfoo() {
System.out.println("B.foo");
}
}
// Class C, subclass of B, also overrides fooclassCextendsB {
@Overridevoidfoo() {
System.out.println("C.foo");
}
}
In this example, A.foo is overriden by B.foo and C.foo. overridingMethods on A.foo returns only B.foo.
It should return both B.foo and C.foo. It should not stop to look down when it finds an overriding method.
The text was updated successfully, but these errors were encountered:
In this example,
A.foo
is overriden byB.foo
andC.foo
.overridingMethods
onA.foo
returns onlyB.foo
.It should return both
B.foo
andC.foo
. It should not stop to look down when it finds an overriding method.The text was updated successfully, but these errors were encountered: