Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Contract {
- //...
- private int id;
- //...
- private static int nextContractID = 0;
- public Contract(String employer, int hours){
- //...
- this.id = Contract.nextContractID++;
- }
- //...
- }
Advertisement
Add Comment
Please, Sign In to add comment