I am trying to display the model year, model, make, and speed and all this information comes up blank when I run the program. I tried switching some things around. Did I use the constructor wrong when I created the Car object called SuperSpeeder? I put arguments in when I created the object. What gives?
cout << "The current speed after acceleration: ";
SuperSpeeder.getSpeed();
You are printing the string "The current speed after acceleration: ".
Then, the next line, you are calling 'getSpeed()', the result of which is lost forever because you don't do anything with it.
It should be:
cout << "The current speed after acceleration: " << SuperSpeeder.getSpeed() << endl;