
yige yang
1,843 Pointshow to make an object array
why Food[] is wrong here.
Food[] foods = {wine, cheese}; Thank you
1 Answer

Steven Parker
177,538 PointsNeither of those classes implement "Food".
But did you notice that there is something else that they both do implement? Try that instead.