Skip to content

Commit 481648e

Browse files
committed
feat: refactor SavingsAccount class to extend CheckingAccount with updated package structure
1 parent 24a4499 commit 481648e

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.codedifferently.lesson17.bank;
2+
3+
import java.util.Set;
4+
5+
/**
6+
* Represents a savings account that does not support check writing.
7+
*/
8+
public class SavingsAccount extends CheckingAccount {
9+
10+
public SavingsAccount(String accountNumber, Set<Customer> owners, double initialBalance) {
11+
super(accountNumber, owners, initialBalance);
12+
}
13+
}

0 commit comments

Comments
 (0)