- public Booking createBook(String bookTelephoneNumber) {
- Booking b=new Booking(bookTelephoneNumber, this);
- booking=b;
- return booking;
+ /**
+ * This method creates a book with a corresponding parameters
+ *
+ * @param First day, last day, house number and telephone
+ * @return a book
+ */
+ public Booking createBooking(int numBooking,String bookTelephoneNumber) {
+ return booking=new Booking(numBooking,bookTelephoneNumber,this);
+
+ }
+
+ public String toString(){
+ return offerNumber+";"+firstDay.toString()+";"+lastDay.toString()+";"+price+";"+ruralHouse;