The answer to the question pretty much sums it up, but essentially the assignment asked to extend a class that had red, green, and blue values associated with it. Obviously this method was supposed to just set those variables, but I guess the student got confused after the lecture about recursion and somehow thought this made sense. To add to the humor, it was a really simple assignment (pretty much writing a bunch of simple methods like this) and this question was asked 3 days after the due date.
I thought the same thing at first, but I just went back and looked through the assignment. He was trying to implement a method specified in an interface and the parent class has no getColor().
13
u/NotSteve_ Dec 05 '14
What was he even trying to do