Added base classes

This commit is contained in:
2025-03-19 12:51:30 +01:00
parent c05dda145f
commit 32c93fd99f
8 changed files with 333 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package me.zacharias.bank;
public class SavingsAccount extends Account{
public SavingsAccount(String name, int balance) {
super(name, balance);
}
@Override
double getInterestRate() {
return 0.05;
}
}