-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
31 lines (23 loc) · 934 Bytes
/
Main.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
import Constructor.Account;
public class Main {
public static void main(String[] args) {
Account bobsAccount = new Account("12345", 500,
"Bob Brown", "[email protected]",
"(087) 123-4567");
System.out.println(bobsAccount.getNumber());
System.out.println(bobsAccount.getBalance());
// bobsAccount.setNumber("12345");
// bobsAccount.setBalance(1000.00);
// bobsAccount.setCustomerName("Bob Brown");
// bobsAccount.setCustomerEmail("[email protected]");
// bobsAccount.setCustomerPhone("(087) 123-4567");
bobsAccount.withdrawFunds(100.0);
bobsAccount.depositFunds(250);
bobsAccount.withdrawFunds(50);
bobsAccount.withdrawFunds(200);
bobsAccount.depositFunds(100);
bobsAccount.withdrawFunds(45.55);
bobsAccount.withdrawFunds(54.46);
bobsAccount.withdrawFunds(54.45);
}
}