private Date bookingDate;
private String telephone;
private Offer offer;
+ private boolean isAccepted;
public Booking() {
//Booking date is assigned to actual date
this.bookingDate= new java.util.Date(System.currentTimeMillis());
this.isPaid=false;
+ this.isAccepted=false;
}
public void imprimete(){
System.out.println(bookingDate);
System.out.println(telephone);
System.out.println(offer);
+ System.out.println(this.isAccepted);
}
public int getBookNumber() {
return isPaid;
}
+ public boolean isAccepted(){
+ return this.isAccepted;
+ }
+
}
\ No newline at end of file