I am writing a horse race game. I have done a lot of research on accessors and mutators, and I am still confused why I am not getting a number other than the value of constructor I created which is zero. Where am I going wrong? Note distanceTraveled and maxRunningDistPerSecond are private member variables.
Ideally I would like to mutate the private member distanceTraveled by adding a number from 0 to number of maxRunningDistPerSecond to distanceTraveled and setting equal it to distanceTraveled.
Just need clarification, I am new to the concept of classes. I would never try to troll you, I appreciate your help. My apologies if you took any offense to what I said, it was not intended to be malicious.