You create a class named Car with private non-static data fields named year, make, and price. The Car class contains a public non-static function named setYear()whose header is void Car::setYear(int year). Within this function, which statement correctly sets an object’s field to the value of the parameter?
a. year = year;
b. Car::year = year;
c. year = Car::year;
d. Two of the above are correct.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.