r/shittyprogramming • • Dec 05 '14

Recursion 101

Post image
316 Upvotes

73 comments sorted by

View all comments

13

u/NotSteve_ Dec 05 '14

What was he even trying to do

9

u/katyne Dec 05 '14

Most likely he meant to call super.getColor() , probably confused about inherited vs overridden methods.

3

u/justabaguette Dec 05 '14

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().