Question: please use java and follow the intructions carefully Lab: Interface 1. Create an Animal Interface that has the following methods: -getPlace0returns the favorite place of
Lab: Interface 1. Create an Animal Interface that has the following methods: -getPlace0returns the favorite place of an animal -getNoise0-returns the "sound" the animal makes as a string -getTypeo-returns the type of animal as a string 2. You will write three "Animal" classes that implement the Animal interface. 3. Write an Old MacDonald mad lib program that runs through the song three times with each type of animal. Maximize the use of an interface by using a for loop and an array to run the program. The song should only be coded once in this program. -91d -Macdonald had .-place .BI. on that ' animal and on that plce hehad a EI-E1-O noise noise here noisethere noise noise and a noise bere noise everywher noise ,there a Oldhd place Macdonald had a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
