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".
Animal identification
- 3
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
msc
16 November 2019, 09:16
task incorrect - remove Pig else if -
last condition verified with only first three animals
+1