From 995b37d2577f152d6ff1c1cf46c71aea6b3e5b4c Mon Sep 17 00:00:00 2001 From: Jitse Goutbeek <147500739+JitseGoutbeek@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:39:16 +0200 Subject: [PATCH] Update Accounts.java --- .../sig/training/ch04-duplication/bankaccounts/Accounts.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/training-assignments/src/java/eu/sig/training/ch04-duplication/bankaccounts/Accounts.java b/training-assignments/src/java/eu/sig/training/ch04-duplication/bankaccounts/Accounts.java index f42ee03..5c5e73d 100755 --- a/training-assignments/src/java/eu/sig/training/ch04-duplication/bankaccounts/Accounts.java +++ b/training-assignments/src/java/eu/sig/training/ch04-duplication/bankaccounts/Accounts.java @@ -4,6 +4,8 @@ public class Accounts { @SuppressWarnings("unused") public static CheckingAccount findAcctByNumber(String number) { return new CheckingAccount(); + public static SavingsAccount findAcctByNumber(String number) { + return new SavingsAccount(); } // tag::isValid[] @@ -15,4 +17,4 @@ public static boolean isValid(String number) { return sum % 11 == 0; } // end::isValid[] -} \ No newline at end of file +}