Question: / * * accout.h * * Created on: Jan 2 1 , 2 0 1 5 * Author: liuyan * / #ifndef ACCOUT _ H

/** accout.h ** Created on: Jan 21,2015* Author: liuyan */ #ifndef ACCOUT_H_ #define ACCOUT_H_ #include "Owner.h" class Owner; class Account { private: static const int MAX_OWNER_SIZE =3; int accountNum; // account number double balance; // the balance Owner * holders; // the holders (e.g. joint account owners) of this account int numOwner; public: Account(); // default constructor Account(int, double); // regular constructor Account(const Account &); // copy constructor ~Account(); // destructor int getAccountNumber() const; // returns account number double withdrawal(double); // makes a withdrawal double deposit(double); // makes a deposit void setBalance(double); // sets the balance double getBalance() const; //returns the balance void addOwner(const Owner&); // adds an owner to the account void listOwners() const; // list all the owners of this account }; #endif /* ACCOUT_H_*/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!