courseinfo.java~2~
来自「北大青鸟一道java机试题 北大青鸟一道java机试题」· JAVA~2~ 代码 · 共 63 行
JAVA~2~
63 行
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; public String toString() { return courseName; } public String getId() { return id; } public String getName() { return courseName; } public int gettheoryhours() { return theoryhours; } public int getoperatehours() { return operatehours; } public int getonlinehours() { return onlinehours; } public int getguidancehours() { return guidancehours; } public CourseInfo(String courseName) { this.courseName = courseName; } 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 + =
减小字号Ctrl + -
显示快捷键?