K
Kira Yamato
class A
{
public int showMe() { System.out.println("A"); }
}
class B extends A
{
public int showMe() { System.out.println("B"); }
}
class C extends A
{
public int showMe() { System.out.println("C"); }
public void test()
{
showMe(); // prints C
super.showMe(); // prints B
// Question: how can I access class A's showMe()?
// I'm suspecting this cannot be done without modifying codes
outside of class C.
}
}
Thanks.
{
public int showMe() { System.out.println("A"); }
}
class B extends A
{
public int showMe() { System.out.println("B"); }
}
class C extends A
{
public int showMe() { System.out.println("C"); }
public void test()
{
showMe(); // prints C
super.showMe(); // prints B
// Question: how can I access class A's showMe()?
// I'm suspecting this cannot be done without modifying codes
outside of class C.
}
}
Thanks.