摘要:
public class Hello { public static void main(String[] args) { Person p = new Student(); p.run();//Student is running Person.run2(); p.run1(); } } // 抽 阅读全文
摘要:
public class Hello { public static void main(String[] args) { Person p = new Student("张三","软件7班"); System.out.println(p.name); Student s = (Student)p; 阅读全文