| Modifier and Type | Field and Description |
|---|---|
private int |
expertiseLevel |
private int |
salary |
private int |
totalProfit |
| Constructor and Description |
|---|
Steward() |
| Modifier and Type | Method and Description |
|---|---|
int |
getTotalProfit()
Retrieve the amount of profit the steward made.
|
void |
updateProfit(int profit)
Add the profit the total profit.
|
void |
upgradeToNextLevel()
Increase the experiance level by one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpertiseLevel, getSalaryprivate int expertiseLevel
private int salary
private int totalProfit
public int getTotalProfit()
IStewardgetTotalProfit in interface IStewardpublic void updateProfit(int profit)
IStewardupdateProfit in interface IStewardpublic void upgradeToNextLevel()
IStewardupgradeToNextLevel in interface IStewardCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.