Skip to content

Commit 576826b

Browse files
author
AmiyahJo
committed
feat: adds getBusinessName getter
within the BusinessCheckingAccount.java
1 parent 72243fc commit 576826b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lesson_17/bank/bank_app/src/main/java/com/codedifferently/lesson17/bank/BusinessCheckingAccount.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ public BusinessCheckingAccount(String accountNumber, Set<Customer> owners, Strin
2222
}
2323
this.businessName = businessName;
2424
}
25+
26+
public String getBusinessName() {
27+
return businessName;
28+
}
2529
}

0 commit comments

Comments
 (0)