Fixed some issues, and made things readible from File.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package me.zacharias.bank;
|
||||
|
||||
public class BankAccount extends Account {
|
||||
public BankAccount(String name, int balance) {
|
||||
super(name, balance);
|
||||
}
|
||||
import static me.zacharias.bank.Account.Interests.BANK_ACCOUNT_INTEREST_RATE;
|
||||
|
||||
@Override
|
||||
double getInterestRate() {
|
||||
return 0.001;
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user