Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Step 1 : Declare a class Customer, define all the member methods and store it in Customer.cpp Customer ( ) : to initialize the member
Step : Declare a class "Customer", define all the member methods and store it in Customer.cpp
Customer : to initialize the member variables to NULL
Customer CustID: int, CustName: string, CustAddress: string: To initialize the member variables with the parameters received
CustomerCustomer& 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 : 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 objects which uses the types of constructors defined in Customer class
Using getter methods, display all the customer details
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started