摘要: 首先创建父类,因为BYD和BMW同输入汽车,有共同的属性和方法 1 public class Car { 2 int price; 3 String type; 4 String color; 5 public Car() { 6 super(); 7 } 8 public Car(int price, String ... 阅读全文
posted @ 2017-04-15 15:35 我是胡大大 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 同理,建立美国工人的子类 阅读全文
posted @ 2017-04-15 11:52 我是胡大大 阅读(320) 评论(0) 推荐(0) 编辑