File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
lesson_17/bank/bank_app/src/main/java/com/codedifferently/lesson17/bank Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 22
33import java .util .Set ;
44
5- /**
6- * Represents a savings account, which is a specialized type of checking account.
7- * Inherits the behavior and properties of the CheckingAccount class.
5+ /**
6+ * Represents a savings account, which is a specialized type of checking account. Inherits the
7+ * behavior and properties of the CheckingAccount class.
88 */
99public class SavingsAccount extends CheckingAccount {
1010
@@ -16,13 +16,15 @@ public class SavingsAccount extends CheckingAccount {
1616 * @param initialBalance The initial balance to set for the account.
1717 */
1818 public SavingsAccount (String accountNumber , Set <Customer > owners , double initialBalance ) {
19- super (accountNumber , owners , initialBalance ); // Call the superclass constructor to initialize common fields
19+ super (
20+ accountNumber ,
21+ owners ,
22+ initialBalance ); // Call the superclass constructor to initialize common fields
2023 }
2124
2225 /**
23- * Deposits funds into the savings account.
24- * This method overrides the deposit method in CheckingAccount, but currently
25- * it behaves the same way as the parent class.
26+ * Deposits funds into the savings account. This method overrides the deposit method in
27+ * CheckingAccount, but currently it behaves the same way as the parent class.
2628 *
2729 * @param amount The amount to deposit into the savings account.
2830 */
You can’t perform that action at this time.
0 commit comments