public class Bunk
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double |
bedCost |
private long |
bedNumber |
private java.lang.String |
cabinName |
Constructor and Description |
---|
Bunk(java.lang.String cabinNameIn,
long bedNumberIn,
double bedCostIn)
Bunk Object, constructor has 3 variables
|
Modifier and Type | Method and Description |
---|---|
double |
getBedCost()
Gets the cost of the bed for the bunk
|
long |
getBedNumber()
Gets the bed number of the bed
|
java.lang.String |
getCabinName()
Gets the cabin name
|
private java.lang.String cabinName
private long bedNumber
private double bedCost
public Bunk(java.lang.String cabinNameIn, long bedNumberIn, double bedCostIn)
cabinNameIn
- The cabin name constructor parameterbedNumberIn
- The bed number constructor parameterbedCostIn
- The bed cost constructor parameterpublic double getBedCost()
public long getBedNumber()
public java.lang.String getCabinName()