Error making C++ functions virtual
<p>The error states:
<br>"error: virtual outside class definition"</p>

<p>Cpp members in question:</p>

<pre><code>virtual void Account::creditBalance(double plus)
{
   if(plus &gt; 0)
      balance += plus;
   else
      cout &lt;&lt; "Cannot credit negative.";
}

virtual void Account::debitBalance(double minus)
{
   if(minus &lt;= balance)
      balance -= minus;
   else
      cout &lt;&lt; "Debit amount exceeded account balance.";
}
</code></pre>

<p>The rest of the code is here (although I'm not sure it's necessary): <a href="http://pastebin.com/de5e9f77" rel="nofollow">http://pastebin.com/de5e9f77</a></p>
