3 import java.io.Serializable;
6 @SuppressWarnings("serial")
7 public class Booking implements Serializable {
8 private int bookingNumber;
9 private boolean isPaid;
10 private Date bookingDate;
11 private String telephone;
18 public Booking(int bN ,String telephone, Offer offer) {
20 this.bookingNumber = bN;
21 this.telephone=telephone;
24 //Booking date is assigned to actual date
25 this.bookingDate= new java.util.Date(System.currentTimeMillis());
29 public void imprimete(){
30 System.out.println(bookingNumber);
31 System.out.println(isPaid);
32 System.out.println(bookingDate);
33 System.out.println(telephone);
34 System.out.println(offer);
37 public int getBookNumber() {
38 return this.bookingNumber;
41 public void setOffer(Offer offer) {
45 public Offer getOffer() {
49 public float getPrice() {
50 return this.offer.getPrice();
53 public void setBookDate(Date bookDate) {
54 this.bookingDate = bookDate;
57 public Date getBookDate() {
58 return this.bookingDate;
61 public void setTelephone(String telephone) {
62 this.telephone = telephone;
65 public String getTelephone() {
66 return this.telephone;
73 public void notPaid() {
77 public boolean isPaid() {