Question: I am passing one test. Not sure why. Action Sets the correct data member to value, if it is in legal range. The legal range


I am passing one test. Not sure why.
Action Sets the correct data member to value, if it is in legal range. The legal range is 0 to 255 , inclusive. Return Value True if the method was given a valid value, False otherwise. Examples c=Color(15,45,199) c.setRed(40) -> True c.setGreen(-1) -> False c.setBlue(256) -> False Hints - Remember, you're adding to the code from the previous step. - You may want to a global constant at the top of your file regarding the maximum allowed value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
