⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 booking.java

📁 java开发
💻 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 + -