#include #include "BankAccount.h" using namespace std; BankAccount::BankAccount() { Balance=0; AccountNumber=0; } BankAccount::BankAccount(int balance) { Balance=balance; AccountNumber++; } BankAccount::~BankAccount() { cout << "Message: account closed!" <>MoneyDeposit; Balance=Balance + MoneyDeposit; } void BankAccount::Withdraw() { int MoneyWithdrawn; cout<<"Enter amount to be withdrawn: "; cin>>MoneyWithdrawn; if (Balance >= MoneyWithdrawn) Balance -= MoneyWithdrawn; else cout << "ERROR: Cannot withdraw " << MoneyWithdrawn << " since current balance is " << Balance <