Answered step by step
Verified Expert Solution
Link Copied!

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 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions