Animal identification

  • 3
  • Locked
Napoleon, a cat breeder, believes that it is vitally important to know how to distinguish between types of animals. Let's help Napoleon out. We'll write a method that determines the class of the object passed to it, and returns one of the following results: "Cow", "Whale", "Dog", or "Unknown Animal".
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
msc
Level 13 , Bangalore, India
16 November 2019, 09:16
task incorrect - remove Pig else if - last condition verified with only first three animals