Question: Step 1 : Declare a class Customer, define all the member methods and store it in Customer.cpp Customer ( ) : to initialize the member

Step 1: Declare a class "Customer", define all the member methods and store it in Customer.cpp
Customer() : to initialize the member variables to 0? NULL
Customer (CustID: int, CustName: string, CustAddress: string): To initialize the member variables with the parameters received
Customer(Customer& oCustomer) : To initialize an object with another object
Customer() : To display a message during object destruction
Use this pointer in all getter methods while returning the private date member value
Step 2: Create a Main Function outside the class.
In this function, read the Customer details from the command line and store it in the temporary variables
Define 3 objects which uses the 3 types of constructors defined in Customer class
Using getter methods, display all the customer details
 Step 1: Declare a class "Customer", define all the member methods

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!