Insect
stomach: int
eat(nutrients: int): void
Beetle
Ant
flightSpeed: float
emitPheromone(): void
fly(): void
colony of residence
AntColony
StagBeetle
residents: Ant[]
hornSize: float
buildAnthill(): void
Consider the following ArrayList:
ArrayList myList = new ArrayList<Insect>
Using polymorphism, what type of objects could you put into this ArrayList? (Select all that apply)
StagBeetle
AntColony
Ant
Beetle