Java Interfaces in Java Interfaces in Java Interfaces Quiz

yige yang
yige yang
1,843 Points

how to make an object array

why Food[] is wrong here.

Food[] foods = {wine, cheese}; Thank you

1 Answer

Steven Parker
Steven Parker
177,538 Points

Neither of those classes implement "Food".

But did you notice that there is something else that they both do implement? Try that instead.