Question: C++ Create a class called Account: The class must have 3 attributes acctnum, name and balance All attributes MUST BE private access only You will

C++  C++ Create a class called Account: The class must have 3

Create a class called Account: The class must have 3 attributes acctnum, name and balance All attributes MUST BE private access only You will have two constructors for this class one parameterized (passes number, name& initial balance the other non-parameterized that sets all attributes to 0 or There must be the following behaviors i) Mutators for all attributes ) Accessor s for all attributes iii) withdrawal() that will pass the amount to be withdrawn and update balance (NO iv) deposite0 that will pass the amount to deposite and update balance(if value is co v) overload the insertion operator to display with account number 572 name-"Bruin" and negative balance or overdrafts allowed) then the balance should remain unchanged) Balance 5.18 Account #572 Name: Bruin $5.18 vi) Overload the + operator such that it will return a float that is the sum of the two balances vii) Overload the operator such that it will return a float that is the difference of the two balances Three instances of Account should be created. i) One that is interactively entered i) One that is the default non-parameterized constructor iii) One that has a number of 534 balance of 876.65 and Name of"Mr. B" Also Derive a class called Corporate that is derived from Account above i) One additional attribute creditline ii) You will have two constructors for this class one parameterized (passes number, name, creditline& initial balance the other non-parameterized that sets all attributes to 0 or i) Create both an accesor and mutator for creditline attribute Modify the behavior of withdrawal0 to allow a negative balance as long as it does not exceed the creditline(still should not allow

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!