Question
hay this question is from my c++ class object-oriented I need help with it I'm stuck with some of the places so just make sure
hay this question is from my c++ class object-oriented I need help with it I'm stuck with some of the places so just make sure to explain it as you code clearly thank you.
1. Implement a class name Vehicle:
a. A Vehicle class with two private data members: brand, number_of_doors
b. Implement two arguments constructor
c. Implement default constructor and with constructor delegation, initialize with
TBD, and 0.
e. Vehicle class:
1) All appropriate accessor and mutator functions.
2) Implement a display member function that prints object data as demonstrated in the output example.
Output Example:
Brand: TBD
Number of Doors: 0 Brand: BMW
Number of Doors: 4
Use following main to test your class.
int main() {
Vehicle a,b("BMW", 4);
a.display();
b.display();
cout << endl;
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started