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 2
2
3
3
import java .util .Set ;
4
4
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.
8
8
*/
9
9
public class SavingsAccount extends CheckingAccount {
10
10
@@ -16,13 +16,15 @@ public class SavingsAccount extends CheckingAccount {
16
16
* @param initialBalance The initial balance to set for the account.
17
17
*/
18
18
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
20
23
}
21
24
22
25
/**
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.
26
28
*
27
29
* @param amount The amount to deposit into the savings account.
28
30
*/
You can’t perform that action at this time.
0 commit comments