• 8
  • Locked
We will create a menu framework for restaurants, more precisely—a function for selecting food. First, we implement the Selectable interface in the Food class, and the onSelect() method, which should display "The food was selected". Think about which methods can be called with the variable food and which with the variable selectable.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 15 , Old Town, United States
8 June 2021, 00:32
whether you solved this or not. you should read the answers given to John's question in the community help section. Gellert & Thomas gives replies worth its weight in gold! Happy coding! :)
Kent Hervey Software Engineer/Consult at Zeal IT ConsultantsExpert
1 February 2021, 19:04
Not so hard....using the power of InteliJ IDE...but I wonder if I am cheating myself doing that