- #include "stdafx.h"
- #include "SavingsAccount.h"
- SavingsAccount::SavingsAccount(String * holder)
- :BankAccount(holder)
- {
- }
- SavingsAccount::~SavingsAccount()
- {
- }
- void SavingsAccount::ApplyInterest()
- {
- Credit(balance * interestRate);
- }
- bool SavingsAccount::CanDebit(double amount)
- {
- if (amount <= balance / 10)
- {
- return true;
- }
- else
- {
- return false;
- }
- }