Now add your own animal to the zoo. Create a new inner class similar to Lion. Fill

Question:

Now add your own animal to the zoo. Create a new inner class similar to Lion. Fill in the appropriate sound for your animal, and add them to the output section of the listen() method. Your new output will look something like:

% java Zoo Let’s listen to some animals! The lion goes "roar" The gibbon goes "hoot" The seal goes

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: