/in/foo.cc:22:9: error: 'double Account::getBalance()' cannot be overloaded
double getBalance();
^~~~~~~~~~
/in/foo.cc:12:9: error: with 'double Account::getBalance()'
double getBalance() { return balance; }
^~~~~~~~~~
/in/foo.cc:73:8: error: redefinition of 'double Account::getBalance()'
double Account::getBalance()
^~~~~~~
/in/foo.cc:12:9: note: 'double Account::getBalance()' previously defined here
double getBalance() { return balance; }
^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:124:5: error: 'class Account' has no member named 'setBalance'; did you mean 'getBalance'?
a.setBalance(0);
^~~~~~~~~~
/in/foo.cc: In member function 'double CheckingAccount::debit(double)':
/in/foo.cc:113:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^