Add oving 7

This commit is contained in:
Andreas Omholt Olsen
2026-03-06 10:59:33 +01:00
parent 6a27364518
commit 1deb0cc650
44 changed files with 1947 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package oving7.abstractaccount;
/**
* A {@code SavingsAccount} can only have a positive balance. In addition, the account has
* withdrawal restrictions. A {@code SavingsAccount} has {@code x} number of {@code withdrawals}. If
* you want to withdraw money after all withdrawals have been used up, the balance should be charged
* a {@code fee}. If the balance is too low to cover the fee, an {@code IllegalArgumentException}
* should be thrown.
*
* @see AbstractAccount
*/
public class SavingsAccountDocs extends AbstractAccountDocs {
// TODO: Add fields here
/**
* Initializes a new {@code SavingsAccount} with the specified number of withdrawals and fee.
*
* @param withdrawals the number of withdrawals
* @param fee the fee
* @throws IllegalArgumentException if the number of withdrawals or the fee is negative
*/
public SavingsAccountDocs(int withdrawals, double fee) {
// TODO: Implement this constructor
}
// TODO: Override abstract method here
}