Kagalive icon

account

Kagalive | PRO | 09/30/20 01:54:13 PM UTC (Edited) | 0 ⭐ | 1117 👁️ | Never ⏰ | []
C++ |

490 B

|

None

|

0 👍

/

0 👎

class Account
{
 
private:
   int balance;
   std::vector<Transaction> log;
 
public:
 
   Account(); //Constructor
   std::vector<std::string> Report();
   bool Deposit(int amount);
   bool Withdraw(int amount);
   int GetBalance() {return balance;}  //inline implementation
 
 
 
//--------------------
 
Account::Account(): balance(0){}
 
vector<string> Account:Report()
{
 
   vector<string> report;
 
   report.push_back("Balance is " + to_string(balance);
 
 
 
}
 
 
};
 
 
 
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎