Question: Design a class car having attributes Person Data driver String carName Int carid Static int count Const int wheels(Assuming every car will have four wheels)

Design a class car having attributes

  • Person Data driver
  • String carName
  • Int carid
  • Static int count
  • Const int wheels(Assuming every car will have four wheels)
  • Having default overloaded constructers with initializers list and a destructor
  • Having functions add car, delete car, update car and print car
  • Here you will have a constant objects initialized explicitly like this const car constantobj(person, Cname, CID, Ctype)

You will have a menu driven program to perform the following functionalities

1. add car

2. delete car

3. update car attributes

4. print details

Derive a class Sports_car from the class Car, it should illustrate the unique characteristics of a sports car (as data members and as member functions). In the main function make use of the functions of the derived class

c++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!