1 Star 0 Fork 0

皮蛋solo粥/Objects Early

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ClassSchedule.java 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
皮蛋solo粥 提交于 2020-05-11 22:13 . add ClassSchedule.java
/**
A computer class has a title, time and room
*/
public class ClassSchedule
{
private String title;
private String days;
private String startTime;
private String endTime;
private String room;
/**
Constructs a computer class with title, days, time and room
*/
public ClassSchedule(String classTitle, String meetingDays, String aStartTime, String anEndTime, String classRoom)
{
// your work here
title = classTitle;
days = meetingDays;
startTime = aStartTime;
endTime = anEndTime;
room = classRoom;
}
/**
Gets the title
@return the title
*/
public String getTitle()
{
// your work here
return title;
}
/**
Gets the time in the form "days start time-end time"
@return the time
*/
public String getTime()
{
// your work here
String time =days+" "+startTime+"-"+endTime;
return time;
}
/**
Gets the room
@return the room
*/
public String getRoom()
{
// your work here
return room;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mei_ni_wang/Objects-Early.git
git@gitee.com:mei_ni_wang/Objects-Early.git
mei_ni_wang
Objects-Early
Objects Early
master

搜索帮助