Hello, I am having trouble with this homework question Q1: Implement a class called Vehicle. a) A class named Vehicle b) Two private data members: brand (string), model (string), price (int). c)...


Hello, I am having trouble with this homework question



Q1: Implement a class called Vehicle.
a) A class named Vehicle
b) Two private data members: brand (string), model (string), price (int).
c) Accessors and Mutators function for brand, value, and price.


Use following main() to test your class.




int main(){
Vehicle a;
a.setBrand("BMW");
a.setModel("X5");
a.setPrice(60000);
cout<><><>



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here