Include the class written for exercise 3a in a working c


a. Construct a class named Car containing these four data members: a doubleprecision variable named engineSize, a character variable named bodyStyle, an integer variable named colorCode, and a character pointer named vinPtr to a vehicle ID code. The member functions should include a constructor that provides default values of 0 for each numeric data member, an X for each character variable, and a NULL for each pointer; a display function that prints the engine size, body style, color code, and vehicle ID code; and an assignment operator that performs a memberwise assignment between two Car objects and handles the pointer member correctly

b. Include the class written for Exercise 3a in a working C++ program that creates two Car objects; the second object should be assigned the values of the first object.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Include the class written for exercise 3a in a working c
Reference No:- TGS02192048

Expected delivery within 24 Hours