面向对象(继承、多态、接口)

继承的例子 class Person { public String name = "小明"; public int age = 20; } class Student extends Person { void study() { System.out.println("I want to study!"); } } public class
相关文章
相关标签/搜索