Created
December 14, 2015 18:55
-
-
Save aahung/523555e74aeaa32e71ac to your computer and use it in GitHub Desktop.
SECTION A - 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RECEIPT { | |
// a) | |
int receiptInt; | |
String tableStr; | |
// b) | |
private ArrayList<Item> orderedItemList; | |
public getItemList() { return orderedItemList; } | |
public setItemList(ArrayList<Item> list) { orderedItemList = list; } | |
// c) In fact I have no idea how to do this one | |
int lastReceipt = 101; | |
// d) | |
public RECEIPT() { | |
receiptInt = lastReceipt + 1; | |
lastReceipt++; | |
} | |
// e) | |
public RECEIPT(int _receiptInt) { | |
receiptInt = _receiptInt; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment