Added some documentation to the code.
fixed a slight bug in the encofing of user data where evry user had the same password of "pass".
This commit is contained in:
@@ -3,9 +3,13 @@ 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
|
||||
* 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user