List 1-1 Accountクラスの定義


  1: class CAccount  
  2: {
  3: public:
  4:     CAccount();
  5:     CAccount(long lPassword, long lAccount_number);
  6:     virtual ~CAccount();
  7:     // パスワードを入力する。
  8:     int Input_Password(long lPassword);
  9:     // 口座番号を入力する。
 10:     int Input_Account_number(long lAccount_number);
 11:     // 口座に預金する。
 12:     int Deposit(int lAmount);
 13:     // 口座から出金する。
 14:     int Pay(int lAmount);
 15:     // 口座の残高を照会する。
 16:     long Refer();
 17: 
 18: private:
 19:     // 口座番号
 20:     long lAccount_number;
 21:     // パスワード
 22:     long lPassword;
 23:     // 口座残高
 24:     long lRemainder;
 25: };