Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Account{
- public:
- Account(int);
- void setBalance(int);
- void getBalance();
- int credit();
- int debit();
- private:
- string personName;
- int accountNum;
- }
- Account::Acount(int=0){
- if(setBalance>=0){
- setBalance=int;
- }
- }
- void Account::setBalance(int account){
- setBalance=account;
- }
- void Acount::getBalance(){
- return getBalance;
- }
- int Acconut::credit(){
- account+=credit;
- }
- int Account::debit(){
- account+=debit();
- }
Add Comment
Please, Sign In to add comment