-
Notifications
You must be signed in to change notification settings - Fork 2
/
InternalAccount.cpp
57 lines (45 loc) · 1.19 KB
/
InternalAccount.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* InternalAccount.cpp
*
* Created on: Feb 1, 2014
* Author: Junjieliao
*/
#include<iostream>
#include "InternalAccount.h"
using namespace std;
InternalAccount::InternalAccount() {
// TODO Auto-generated constructor stub
accountType= "Checking";
money=0;
username="user";
}//end InternalAccount
//InternalAccount::~InternalAccount() {
// // TODO Auto-generated destructor stub
// delete [] externalAccount;
//}//end ~InternalAccount
void InternalAccount::copyInternalAccount(InternalAccount& into){
into.setMoney(money);
into.setAccountType(accountType);
into.setUsername(username);
}
void InternalAccount::setAccountType(string acct){
accountType=acct;
}//end setAccountType
void InternalAccount::setMoney(double m){
money=m;
}//end setMoney
void InternalAccount::setUsername(string nam){
username=nam;
}//end setExternalAccount
string InternalAccount::getAccountType(){
return accountType;
}//end getAccountType
double InternalAccount::getMoney(){
return money;
}//end getMoney
string InternalAccount::getUsername(){
return username;
}//end username
void InternalAccount::displayInternalAccount(){
cout<<accountType<<":"<<endl<<"$"<<money<<endl;
}//end displayInteralAccount