One method in a class

  • 3
  • Locked
In this task, you need to implement the Fox class's inheritance of the Animal interface. Don't delete any methods. Instead, you need to edit the code so that the getName method is the only method in the Fox class.
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
3 June 2021, 00:09
2 ways to solve: 1) add "abstract" to Fox class or 2) make the methods static I'm sure everybody knew that, but for those how didn't..... Happy coding!
Mary Khan
Level 23 , Russia, Russian Federation
6 June 2022, 05:18
I solved by making the methods default