public class SavingsAccount extends Account { public void withdraw(double amount) { if (balance >= amount) { balance = balance - amount; } } }