?? booking.java
字號:
package newBookingSystem;
import java.util.Date;
public class Booking {
private int covers;
private Date date;
private Table hasTable;
//構造函數
public Booking(int c, Date d, int t) {
covers = c;
date = d;
//table = t;
hasTable = new Table(t, 5);
}
//booking about table's set and get method
public void setTable(int t) {
hasTable = new Table(t, 5);
}
public Table getTableInstance() {
return hasTable;
}
//因為暫時設定人數和餐桌能容納的人數都固定為5,所以這個方法留著,但是先盡量不使用
//booking about covers's set and get method
public void setCovers(int c) {
covers = c;
}
public int getCovers() {
return covers;
}
//booking about date's set and get method
public void setDate(Date d) {
date = d;
}
public Date getDate() {
return date;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -