- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransaction.java
More file actions
Latest commit
24 lines (22 loc) · 664 Bytes
/
Copy pathTransaction.java
File metadata and controls
24 lines (22 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
importjava.io.Serializable;
//defines transactions in array from CheckingAccount
//parent of the Check class
publicclassTransactionimplementsSerializable{
privateinttransNumber;
privateinttransId;
protecteddoubletransAmt;
publicTransaction( intnumber, intid, doubleamount) {
transNumber = number;
transId = id; //1 ==> check | 2 ==> deposit | 3 ==> service charge | 4 ==> game
transAmt = amount;
}
publicintgetTransNumber() {
returntransNumber;
}
publicintgetTransId() { //1 ==> check | 2 ==> deposit | 3 ==> service charge | 4 ==> game
returntransId;
}
publicdoublegetTransAmount() {
returntransAmt;
}
}