// the main looks like this:
int main()
{
Car y;
cout << "Initial value for y: " << endl;
cout<< " Race Car Status= "<< y.getRaceCarStatus()<< endl;
y.setRaceCarStatus(true);
cout << "Modified value for y: " << endl;
cout<<" Race Car Status= "<< y.getRaceCarStatus() <<endl;
return 0;
}
In class Car, we define data member RaceCarStatus as public. Under this circumstance, are setRaceCarStatus() and getRaceCarStatus() necessary ? Why ?