Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Contract {
- private int totalCost;
- private int hoursLeft;
- private String employer;
- public Contract(String employer, int hours){
- this.employer = employer;
- this.hoursLeft = hours;
- //...
- }
- public void spendHour(){
- this.hoursLeft--;
- }
- public int getTotalCost(){
- return this.totalCost;
- }
- //...
- }
Add Comment
Please, Sign In to add comment