Assume the bank allows customers to open SavingAccount for which there are certain policies that shall be enforced when the account holder withdraw some amount. Here is the basic version of SavingAccount class.
public class SavingAccount extends Account {
private double minimumBalance = 10000;
public SavingAccount(String title, double balance,boolean filer) {
super(title, balance, filer);
}
@Override
public void withdraw(double amount) {
//...
You are supposed to provide new definition of withdraw method that shall work as per following policies:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here