标签:class ted log system todo extend new gen code
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(); } }
标签:class ted log system todo extend new gen code
原文地址:http://www.cnblogs.com/limu/p/6053600.html