#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
'C++ > 열혈 C++' 카테고리의 다른 글
열혈 C++ oop8 ContriAccount.h (0) | 2018.04.09 |
---|---|
열혈 C++ oop8 Container.h (0) | 2018.04.09 |
열혈 C++ opp8 AccManager.h (0) | 2018.04.09 |
열혈 C++ oop8 main.cpp (0) | 2018.04.09 |
객체(객체 포인터)의 저장/삭제 및 참조에 대한 추상클래스 (0) | 2018.04.09 |
댓글