fixed a slight bug in the encofing of user data where evry user had the same password of "pass".
17 lines
519 B
Java
17 lines
519 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)} instead
|
|
*/
|
|
public class BankAccount extends Account {
|
|
/**
|
|
* Creates a new BankAccount with the given name.
|
|
* @param name The name of the account
|
|
*/
|
|
public BankAccount(String name) {
|
|
super(name, BANK_ACCOUNT_INTEREST_RATE);
|
|
}
|
|
}
|