摘要: 1 public abstract class Car { 2 3 public abstract String getCarName(); 4 5 } 1 public class BYD extends Car { 2 3 @Override 4 public String getCarName 阅读全文
posted @ 2019-12-23 18:54 季节风逝 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1 public class Student { 2 3 private static Student student = null; 4 private String name = ""; 5 6 private Student() {// 把构造方法私有化 7 8 } 9 10 public s 阅读全文
posted @ 2019-12-23 18:31 季节风逝 阅读(219) 评论(0) 推荐(0) 编辑