This commit is contained in:
2025-09-29 18:21:50 -04:00
parent 5fc8f25d82
commit 030d1425e8
7 changed files with 17196 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ public abstract class Reservation implements IReservation{
private Float price;
protected String accountNumber = null;
protected String accountNumber = "-99";
protected Reservation() {
numberOfBeds = 1;

View File

@@ -43,9 +43,6 @@ public final class CabinReservation extends Reservation {
if (getPhysical_address() == null) {
throw new IllegalArgumentException(String.format("not valid, physical_address %s", this.getReservation_number()));
}
if (getMailing_address() == null) {
throw new IllegalArgumentException(String.format("not valid, mailing_address: %s", this.getReservation_number()));
}
return true;
}

View File

@@ -65,9 +65,6 @@ public final class HotelReservation extends Reservation {
if (getPhysical_address() == null) {
throw new IllegalArgumentException(String.format("not valid, physical_address %s", this.getReservation_number()));
}
if (getMailing_address() == null) {
throw new IllegalArgumentException(String.format("not valid, mailing_address: %s", this.getReservation_number()));
}
return true;
}

View File

@@ -53,9 +53,6 @@ public final class HouseReservation extends Reservation {
if (getPhysical_address() == null) {
throw new IllegalArgumentException(String.format("not valid, physical_address %s", this.getReservation_number()));
}
if (getMailing_address() == null) {
throw new IllegalArgumentException(String.format("not valid, mailing_address: %s", this.getReservation_number()));
}
return true;
}