Question: do question 2 ok right now i need help Submission detall: A) Submit cpp file for each question with given main function. B) points distribution:

do question 2 ok right now i need help  do question 2 ok right now i need help Submission detall:
A) Submit cpp file for each question with given main function. B)

Submission detall: A) Submit cpp file for each question with given main function. B) points distribution: 50% compilation, 50% correctness. Q1: Create a class named Vehicle. (20pt) 1. Private data member: brand - dynamic member string 2. Default constructor - set brand to "TBD" 3. One argument constructor to set brand 4. Output function - print brand of Vehicle 5. Mutator and accessor function for brand Use following main() to test your function. int main() Vehicle a,b("BMW"); a.output(); // Brand:TBD b.output(); // Brand:BMW a.setBrand("Tesla"); coutoutput(): // Brand:Honda Weight: 2000 I= new Boat("Baja",150): f> output(); // Brand:Baja hullLength: 100 delete e: delete f

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!