#include class Account { private: long _balance; public: Account() { _balance=0; } void deposit( long amount ) { _balance += amount; } void withdraw (long amount ) { _balance -= amount; } long balance(void) { return _balance; } }; int main( int argc, char *argv[] ) { Account a; a.deposit( 700 ); a.withdraw( 250 ); cout << "Balance is " << a.balance() << endl; return 0; }