I can't figure out why my set() isn't setting. There is no input, but my instructions were to "Always check for invalid client input in set() methods." This is just one value of one object to keep the code short. Thanks in advance!
What an amazing and simple fix! Thanks cire, you helped me discover a further issue :)
Now that my values are displaying, my example with bad values meant to display the default values is not showing the default for one value, the total_time. I've set tune5 to exceed 3600000 ms, so it should display "0", but it's not:
Sorry for the wall of code! When I pull too much out, I break it more...
But, if we take a look at that method we see that since DEFAULT_PLAY_TIME is less than MIN_BIT_RATE the call fails. The method indicates this by returning the value false, but since you only check the return values of your functions sporadically you don't detect it.
You're right! I've been coding for 7 weeks now and can't read my own without great attention! My instructor specified those particular values, though I hadn't noticed the disparity until you pointed it out. Having seen it, I wondered if it was something else I'd have to work around, but found an update on our site where she corrected the values to make sense.