|
@@ -3,11 +3,14 @@ package rocks.zipcode.quiz5.objectorientation.account;
|
3
|
3
|
/**
|
4
|
4
|
* @author leon on 30/12/2018.
|
5
|
5
|
*/
|
6
|
|
-public class Employee {
|
|
6
|
+public class Employee implements Transactable {
|
|
7
|
+ private BankAccount bankAccount;
|
|
8
|
+
|
7
|
9
|
public Employee() {
|
8
|
10
|
}
|
9
|
11
|
|
10
|
12
|
public Employee(BankAccount bankAccount) {
|
|
13
|
+ this.bankAccount = bankAccount;
|
11
|
14
|
}
|
12
|
15
|
|
13
|
16
|
public BankAccount getBankAccount() {
|
|
@@ -16,5 +19,22 @@ public class Employee {
|
16
|
19
|
|
17
|
20
|
public void setBankAccount(BankAccount bankAccount) {
|
18
|
21
|
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+ }
|
|
25
|
+
|
|
26
|
+ @Override
|
|
27
|
+ public void deposit(Double amountToIncreaseBy) {
|
|
28
|
+
|
|
29
|
+ }
|
|
30
|
+
|
|
31
|
+ @Override
|
|
32
|
+ public void withdrawal(Double amountToDecreaseBy) {
|
|
33
|
+
|
|
34
|
+ }
|
|
35
|
+
|
|
36
|
+ @Override
|
|
37
|
+ public Double getBalance() {
|
|
38
|
+ return null;
|
19
|
39
|
}
|
20
|
40
|
}
|