course.java
来自「一个在线学习系统的服务端SERVLET程序」· Java 代码 · 共 58 行
JAVA
58 行
package eols.bean.course;
/**
* Information of a specific course, such as
* name, imagePath, description, etc.
*
* @author Fasheng Qiu
*
*/
public class Course {
private long categoryID; // The id of the course category
private long id; // The course id
private String name; // Course name
private String imagePath; // The path of the course image
private String desc; // The description of the image
public Course() {}
public Course(long cID) {this.categoryID = cID;}
public Course(long cID, long id) {
this.categoryID = cID;
this.id = id;
}
public long getCategoryID() {
return categoryID;
}
public void setCategoryID(long categoryID) {
this.categoryID = categoryID;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getImagePath() {
return imagePath;
}
public void setImagePath(String imagePath) {
this.imagePath = imagePath;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?