commit again
This commit is contained in:
19
MyProject/src/hotelReservation/DeluxeRoom.java
Normal file
19
MyProject/src/hotelReservation/DeluxeRoom.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package hotelReservation;
|
||||
|
||||
public class DeluxeRoom extends Room {
|
||||
private int serviceFees;
|
||||
|
||||
public DeluxeRoom (int roomNumber,int serviceFees) {
|
||||
super (roomNumber,6990); //make service fees for Deluxe romm
|
||||
this.serviceFees = serviceFees;
|
||||
}
|
||||
@Override
|
||||
public double calculateTotal (int nights) {
|
||||
return (pricePerNight*nights)+serviceFees;
|
||||
}
|
||||
@Override
|
||||
public String getRoomInfo() {
|
||||
return "Delixe Room Number" +roomNumber+ "includeing Service Fees";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user