chapter.java
来自「一个在线学习系统的服务端SERVLET程序」· Java 代码 · 共 59 行
JAVA
59 行
package eols.bean.course;
/**
* Information of a specific chapter, such as name, description
*
* @author Fasheng Qiu
*
*/
public class Chapter {
private long categoryID; // Category id
private long courseID; // Course id
private long id; // Chapter id
private String name; // Chapter name
private String desc; // Chapter description
public Chapter() {}
public Chapter(long categoryID, long courseID) {
this.categoryID = categoryID;
this.courseID = courseID;
}
public Chapter(long categoryID, long courseID,
long chapterID){
this.categoryID = categoryID;
this.courseID = courseID;
this.id = chapterID;
}
public long getCategoryID() {
return categoryID;
}
public void setCategoryID(long categoryID) {
this.categoryID = categoryID;
}
public long getCourseID() {
return courseID;
}
public void setCourseID(long courseID) {
this.courseID = courseID;
}
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 getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?