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:
2025-04-25 12:21:44 +02:00
parent 86f67b07c9
commit 12429d22aa
11 changed files with 351 additions and 25 deletions

View File

@@ -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);
}