• 4
  • Locked
A tiger is a bit more than a cat. And a cat is a pet. And in turn, any pet is an animal. And all of them descend from Object. Something is wrong with the inheritance in our program. Correct the 'Object animal = new Pet();' line in the main method so that the program displays "Bingo!"
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet