标签:todo end bsp super generated test method rgs int
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
B b=new B();
b.test();
b.testA();
}
}
class A{
public void test(){
System.out.println("A");
}
}
class B extends A{
public void test(){
System.out.println("B");
}
public void testA(){
super.test();
}
}
标签:todo end bsp super generated test method rgs int
原文地址:http://www.cnblogs.com/x-m-/p/6052505.html