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