Page 1 of 1

QUESTION : Part (A): Define and implement a class Customer as described below. Your implementation should be in three di

Posted: Sat Nov 27, 2021 2:25 pm
by answerhappygod
Question Part A Define And Implement A Class Customer As Described Below Your Implementation Should Be In Three Di 1
Question Part A Define And Implement A Class Customer As Described Below Your Implementation Should Be In Three Di 1 (29.65 KiB) Viewed 63 times
QUESTION : Part (A): Define and implement a class Customer as described below. Your implementation should be in three different files 1) Customer.h: Contains the class definition 2) Customercpp: Contains the class implementation 3) Customer Driver.cpp: Contains the main function Data Members: A Customer name of type string. A conton Customer ID of type int. Member Functions A parameterized constructor A destructor (does nothing for the meantime Getters and setters for the Customer name and a getter for the ID. Part (B) 1) Add a private sturile integer data member named numOfCustomers. This duta Incremented whenever a new Customer object is created member should be Berceritagliteli TAMA #. Decremented whenever a Customer object is destructed 2) Add a public statie getter ſinction for num Customer 3) Modify your code such that all member functions that do not modify data members are made content 4) Modify the driver program to instantiate three obiccts of type Customer and then use the getter function defined in B 2 10 output the number of Customer objects instantiated so far 5) Modify the code such that it calls the destructor for one of the objects you defined before then call the numrCustomers geffer function again 6) Define a constant object of type Customer 7) In a comment section, for each of the member fonctions in class Cloner, list which functions can be called on the constant object and which cannot. Justify your answer