#include using namespace std; class Account { protected: float m_balance; public: Account() { m_balance = 0; } Account(float balance) { m_balance = balance; } float getBalance() { return m_balance; } void Deposit(float money) { m_balance += money; } void withdraw(float money) { if (money <= m_balance) m_balance -= money; else { cout << "Not enough money to withdraw."<m_duration = 0; return Account::Deposit(money); } void SavingAccount::withdraw(float money) { this->m_duration = 0; return Account::withdraw(money); } void SavingAccount::DurIncrease() { this->m_duration += 1; } int main() { SavingAccount S(4, 2.1, 12); S.Deposit(100000); S.withdraw(120000); float money = S.getBalance(); cout << money << endl; }