-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBank.java
More file actions
70 lines (44 loc) · 1.29 KB
/
Copy pathBank.java
File metadata and controls
70 lines (44 loc) · 1.29 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package Homework_ATM_FinalProject;
public class Bank {
private static String bankName;
private static String acctype;
private static BankCustomer bankcustomer;
public Bank() {
}
public Bank(String bankName, String acctype, BankCustomer bankcustomer) {
super();
this.bankName = bankName;
this.acctype = acctype;
this.bankcustomer = bankcustomer;
}
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public String getAcctype() {
return acctype;
}
public void setAcctype(String acctype) {
this.acctype = acctype;
}
public BankCustomer getBankcustomer() {
return bankcustomer;
}
public void setBankcustomer(BankCustomer bankcustomer) {
this.bankcustomer = bankcustomer;
}
//@Override
public String toString() {
return bankName + ", " + acctype + ", " + bankcustomer;
}
/*public static void showDetails() {
System.out.println("\nBank Customer Details " + bankcustomer + "\nBank Name " + bankName + "\nAccount Type " + acctype);
}*/
/*if (id.equals("003457001") && pw.equals("1290")) {
String name = "Elena Georgievska";
String acctype = "Savings Account";
bal = 115000;
System.out.println("\nName: " + name + "\nAccount Type: " + acctype + "\nBalance: " + bal);*/
}