13 lines
439 B
Java
13 lines
439 B
Java
package me.zacharias.bank;
|
|
|
|
import static me.zacharias.bank.Account.Interests.BANK_ACCOUNT_INTEREST_RATE;
|
|
|
|
/**
|
|
* This class only works as a way to have prefilled information, but can be replaced by just calling the {@link Account#Account(String, double, double)} instead
|
|
*/
|
|
public class BankAccount extends Account {
|
|
public BankAccount(String name, double balance) {
|
|
super(name, balance, BANK_ACCOUNT_INTEREST_RATE);
|
|
}
|
|
}
|