fix: Classnames in abstractaccount
This commit is contained in:
@@ -1,26 +1,32 @@
|
||||
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}
|
||||
* 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 {
|
||||
public class SavingsAccount extends AbstractAccount {
|
||||
|
||||
// TODO: Add fields here
|
||||
|
||||
/**
|
||||
* Initializes a new {@code SavingsAccount} with the specified number of withdrawals and fee.
|
||||
* 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
|
||||
* @param fee the fee
|
||||
* @throws IllegalArgumentException if the number of withdrawals or the fee is
|
||||
* negative
|
||||
*/
|
||||
public SavingsAccountDocs(int withdrawals, double fee) {
|
||||
public SavingsAccount(int withdrawals, double fee) {
|
||||
// TODO: Implement this constructor
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user