Question: You are to write a C++ Program based on Object Oriented principle with the following features. . I. A class called Customer with . i.

 You are to write a C++ Program based on Object Oriented

You are to write a C++ Program based on Object Oriented principle with the following features. . I. A class called Customer with . i. Member variables string firstName: string lastName: double balance,. 2. A class called BankAccount with i. Member variables Customer customerAccount;- ii. Opcrations (Mcmber Functions). void createAccount(string firstName, stringlastName, double amount) s..) string getFirstName() {.. } . * . string getLastNamc) {..) . double getBalance0 {..) void deposit(double amount) ..) o double withdraw(double amount) !. 3. As indicated above, your program will have two classes called Customer and BankAccount. BankAccount, among others, will be using an instance of the Customer class as a member variable. (No Ineritance). 4. Use the following steps and data to test your program BankAccount ba("Earth". "Sun", 1000); ba deposit 10000); ba withdraw(50); ba.deposit(10000) ba.withdraw(50); cout

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!