📄 courseinfo.java
字号:
package lk;/** * <p>Title: </p> * * <p>Description: </p> * * <p>Copyright: Copyright (c) 2008</p> * * <p>Company: </p> * * @author not attributable * @version 1.0 */public class CourseInfo { public String id; public String courseName; public int theoryhours; public int operatehours; public int onlinehours; public int guidancehours; /** * 重写tostring方法 * @return String */ public String toString() { return courseName; } /** * 只需要名字的构造方法 * @param courseName String */ public CourseInfo(String courseName) { this.courseName = courseName; } /** * 重写构造方法 * @param courseName String * @param theoryhours int * @param operatehours int * @param onlinehours int * @param guidancehours int */ public CourseInfo(String courseName, int theoryhours, int operatehours, int onlinehours, int guidancehours) { this.courseName = courseName; this.theoryhours = theoryhours; this.operatehours = operatehours; this.onlinehours = onlinehours; this.guidancehours = guidancehours; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -