该文被密码保护。 阅读全文
posted @ 2019-03-30 21:51 Hello_World2020 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Employee; package textq; /** * 调用接口Comparable排序 * @author Administrator * */ public class Employee implements Comparable<Employee>{ private int id; pr 阅读全文
posted @ 2019-03-30 20:28 Hello_World2020 阅读(434) 评论(0) 推荐(0) 编辑
摘要: public abstract class Car { public abstract String getInfo(); //用来描述汽车的信息 } public class BMW extends Car { @Override public String getInfo() { //用来描述汽 阅读全文
posted @ 2019-03-30 20:00 Hello_World2020 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Shape: Shape: package Area; /** * 求面積 * @author Administrator * */ public abstract class Shape { public String getName(){ return this.getClass().getNa 阅读全文
posted @ 2019-03-30 13:32 Hello_World2020 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Employee: package text1; public class Employee { public String getInfo(){ return "我是王大錘"; } } Manager: package text1; public class Manager { public St 阅读全文
posted @ 2019-03-30 12:55 Hello_World2020 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Employee: import java.util.Date; /* * */ public class Employee { private String name; private double salary; private Date birthday; public Employee(){ 阅读全文
posted @ 2019-03-30 12:40 Hello_World2020 阅读(370) 评论(0) 推荐(0) 编辑