A
Aaron Fude
Queston is in the comment. Thanks so much!
public class A {
void f() {
System.out.println("A");
}
}
publicclass B extends A {
void f() {
System.out.println("B");
}
}
public static void main(String[] args) {
B b = new B();
// What's the syntax for calling A.f() on b?
}
public class A {
void f() {
System.out.println("A");
}
}
publicclass B extends A {
void f() {
System.out.println("B");
}
}
public static void main(String[] args) {
B b = new B();
// What's the syntax for calling A.f() on b?
}