Page 1 of 1

e 4 of 5 Due date: Jul 12, 11:59 PM 4. Implement a class name Vehicle: a. A Vehicle class with two private data members:

Posted: Tue Jul 12, 2022 8:12 am
by answerhappygod
E 4 Of 5 Due Date Jul 12 11 59 Pm 4 Implement A Class Name Vehicle A A Vehicle Class With Two Private Data Members 1
E 4 Of 5 Due Date Jul 12 11 59 Pm 4 Implement A Class Name Vehicle A A Vehicle Class With Two Private Data Members 1 (51.15 KiB) Viewed 18 times
e 4 of 5 Due date: Jul 12, 11:59 PM 4. 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: Output Example: Brand: TBD Number of Doors: 0 Brand: BMW Number of Doors: 4 Use following main to test your class. int main() { } 1) All appropriate accessor and mutator functions. 2) Implement a display member function that prints object data as demonstrated in the output example. Vehicle a,b("BMW", 4); 19 a.display(); b.display(); Search cout << endl; return 0; 5. Implement a class: a. A Student class with a private nested GPA class and three data members: name, major, grade (grade is of type GPA) b. Use c++11 member initialization to set the default name and major to "blank" and GPA to 0.0 for all objects.