소스 검색

One more test

Nathan Hall 5 년 전
부모
커밋
369db7d126
1개의 변경된 파일21개의 추가작업 그리고 1개의 파일을 삭제
  1. 21
    1
      src/main/java/rocks/zipcode/quiz5/objectorientation/account/Employee.java

+ 21
- 1
src/main/java/rocks/zipcode/quiz5/objectorientation/account/Employee.java 파일 보기

@@ -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
 }