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 to Expert-Tailored 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

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions