Question: c + + CreditCard is a class with two double * data members pointing to the amount owed and interest rate of the credit card,

c++ CreditCard is a class with two double* data members pointing to the amount owed and interest rate of the credit card, respectively. Two doubles are read from input to initialize userCard. Use the copy constructor to create a CreditCard object named copyCard that is a deep copy of userCard.
Ex: If the input is 53.000.04, then the output is:
Original constructor called Called CreditCard's copy constructor userCard: $53.00 with 4.00% interest rate copyCard: $106.00 with 8.00% interest rate

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 Programming Questions!