//A class SuperClass { public void fun() { System.out.println(“SupperClass”); } } class ChildClass1 extends SuperClass { public void fun() { System.out.println(“ChildClass1”); } } class ChildClass2 extends SuperClass { public void fun() { System.out.println(“ChildClass2”); } } |
//B class SuperClass { public void fun() { System.out.println(“SuperClass”); } } class ChildClass1 { public void fun() { System.out.println(“ChildClass1”); } } class ChildClass2 { public void fun() { System.out.println(“ChildClass2”); } } |
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |