-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCurrentAccount.java
39 lines (32 loc) · 973 Bytes
/
CurrentAccount.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package bankybc;
public class CurrentAccount extends Account{
/**
* @param type=3
* @param accNum
* @param accName
* @param pin
* @param balance
* @param birth
* @param address
*/
public CurrentAccount() {
}
public CurrentAccount (String accNum, String accName,String address,String birth,String openTime,String pin,double balance) {
this.type=3;
this.accNum = accNum;
this.accName = accName;
this.address = address;
this.birth = birth;
this.openTime=openTime;
this.pin = pin;
this.balance = balance;
this.overdraftState= true;
this.uncleared = 0;
}
@Override
public String toString() {
return "CurrentAccount [type=" + type + ", accNum=" + accNum + ", address=" + address + ", accName=" + accName
+ ", pin=" + pin + ", birth=" + birth + ", openTime=" + openTime + ", uncleared=" + uncleared
+ ", balance=" + balance + ", overdraftState=" + overdraftState + "]";
}
}