Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
#define CLIENT_H_

#include "Person.h"
#include "ExternalAccount.h"
#include "InternalAccount.h"

using namespace std;

class Client {
class Client:public Person {
public:
Client();//constructor
virtual ~Client();//destructor
ExternalAccount getHeldAccount();//function returns heldAccount
void setHeldAccount(ExternalAccount &a);//function sets the held account
InternalAccount getHeldAccount();//function returns heldAccount
void setHeldAccount(InternalAccount &a[]);//function sets the held account
void copyClient(Client &into);//function copies information from another client
void viewExternalAccount();//function calls displayExternalAccount()
void viewInternalAccount();//function calls displayExternalAccount()
void withdraw();
//ask the user what account they wish to withdraw from and how much
//check to see that money is less than the total amount of money
Expand All @@ -46,7 +46,7 @@ class Client {
//the respective function

protected:
ExternalAccount heldAccount;
InternalAccount heldAccount[];
};


Expand Down