The error states:
"error: virtual outside class definition"
Cpp members in question:
virtual void Account::creditBalance(double plus)
{
if(plus > 0)
balance += plus;
else
cout << "Cannot credit negative.";
}
virtual void Account::debitBalance(double minus)
{
if(minus <= balance)
balance -= minus;
else
cout << "Debit amount exceeded account balance.";
}
The rest of the code is here (although I'm not sure it's necessary): http://pastebin.com/de5e9f77