본문 바로가기
C++/열혈 C++

열혈 C++ oop8 Account.h

by Beijing_KingGod 2018. 4. 9.

#ifndef _ACCOUNT_H_
#define _ACCOUNT_H_
/***********Account Class**********/
class Account
{
 int id; //계좌번호
 int balance; //잔액
 char* name; //이름
public:
 Account(){}
 Account(int id, char* name, int balance);
 Account(const Account& acc);
 ~Account();

 int GetID() const; //계좌번호 조회
 int GetBalance() const; //잔액조회
 virtual void AddMoney(int val); //입금
 void MinMoney(int val); //출금
 const char* GetName() const;
 virtual void ShowAllData();

 Account& operator=(const Account& acc); // 추가된 대입 연산자
};

#endif

댓글