摘要:
1 class Animal 2 { 3 private String name; 4 Animal(String name) 5 { 6 this.name=name; 7 } 8 public void enjoy() 9 {10... 阅读全文
摘要:
1、对象的类型转换子类对象转换成父类对象 1 class A 2 { 3 public void func1() 4 { 5 System.out.println("A func1 is calling"); 6 } 7 public void fun... 阅读全文