C++Class inheritance and polymorphism: Predator-Prey Simulation.Simulation:- In a world of 20 x 20 grid of cells, there lives two kinds of animals: ant and bug. – Each ant/bug takes on cell. – Bugs eat ants for food. – Time is simulated in time steps. – Each animal performs some action every time step. – During one time step, all bugs should move before the ants do. – Initially, the grid has 5 bugs and 100 ants. – Print the grid after each step. Use ‘x’ to represent bug and ‘o’ to represent ant. – Prompt user to press Enter to
OR
OR