minisiia / animaltostringhashcodeequals Goto Github PK
View Code? Open in Web Editor NEW*Object* Create class Animal with name String, int age, tail Boolean. In the class, redefine the toString method so that the output is as follows: "Name: Vaska, age: 45, tail: no". In the Animal class, override the equals & hashCode methods