-
Base class:
class Account {
public:
Account();
bool sell( string symbol, int shares );
bool buy( string symbol, int shares );
bool deposit( double amount );
bool withdraw( double amount );
private:
double m_cash_balance;
static const int SIZE = 100;
string m_holding_symbols[ SIZE ];
int m_holding_shares[ SIZE ];
};//class Account
|
|