【简答题】class Dog{ public String name; Dog(String name){ this.name =name; }}public class Demo1{ public static void main(String[] args){ Dog dog1 = new Dog("xiaohuang"); Dog d...
【单选题】(7-1)以下程序运行结果是( )。 class FatherX{ public Integer getX() { return new Integer(10); } } class Son extends FatherX{ public Double getX() { return new Double(20); } } public class Demo12 { public stati...