package kexuan;
//创建课程类
public class Course {
String Id;
String Name;
public Course(String Id,String Name){
this.Id=Id;
this.Name=Name;
}
public Course(){
}
public boolean equals(Object obj){
if (this==obj) {
return true;
}
if(obj==null){
return false;
}
if (obj instanceof Course) {
}
return true;
}
}
转载于:https://www.cnblogs.com/collectionclass/p/4986002.html