Puzzle: Two instances of a class with different methods
OK, some more Java fun. The following will print 'You won'. What arguments (you may modify both!) to check
would make the code compile without casting to Class
, and still result in 'You won' being printed?