public class Camper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Bunk |
bunk |
private java.lang.String |
camperName |
private double |
campFees |
private double |
excursionFees |
private double |
fundingSupport |
Constructor and Description |
---|
Camper(java.lang.String camperNameIn,
double campFeesIn,
double excursionFeesIn,
double fundingSupportIn,
Bunk bunkIn)
Camper object, constructor has 5 parameters
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOnSiteMailLabel()
Method to get a mailing label for a camper
|
double |
getTotalWeeklyFeesOwing()
Method to get the combined fees of all the campers
|
void |
setBunk(Bunk bunkIn)
Method to set the bunk the camper is staying in
|
void |
setCamperName(java.lang.String camperName)
Method to set the camper's name
|
void |
setCampFees(double campFees)
Method to set the camper's fees
|
void |
setExcursionFees(double excursionFees)
Method to set the excursion fees
|
void |
setFundingSupport(double fundingSupport)
Method to set the funding support
|
private java.lang.String camperName
private double campFees
private double excursionFees
private double fundingSupport
private Bunk bunk
public Camper(java.lang.String camperNameIn, double campFeesIn, double excursionFeesIn, double fundingSupportIn, Bunk bunkIn)
camperNameIn
- The camper's namecampFeesIn
- The camper's feesexcursionFeesIn
- The camper's external excursion feesfundingSupportIn
- The camper's fundingbunkIn
- The camper's bunk they are staying inpublic void setCamperName(java.lang.String camperName)
camperName
- The camper's namepublic void setCampFees(double campFees)
campFees
- The fees the camper owespublic void setExcursionFees(double excursionFees)
excursionFees
- The camper's excursion feespublic void setFundingSupport(double fundingSupport)
fundingSupport
- The camper's funding they have receivedpublic void setBunk(Bunk bunkIn)
bunkIn
- The bunk the camper is staying inpublic double getTotalWeeklyFeesOwing()
public java.lang.String getOnSiteMailLabel()