You will modify your program to add a specific critter ant


I need to add an Ant subclass based on the specs below.

You will modify your program to add a specific Critter: Ant. You will design a (simple) class hierarchy to plan the inheritance. Ant will inherit all data and function members of Critter. In addition, it will have a function Breed() and a member variable Count.

You will need to change your array(s) to contain pointers to Ant. Breed() will create a new Ant. It will check the value of count. If count equals 3 then when the Ant moves it leaves a new Ant in the cell it left. It will reset count to 0. Will the Breed() function be public or private?

ant.h and ant.cpp will be in separate files.

Attachment:- Assignment.zip

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: You will modify your program to add a specific critter ant
Reference No:- TGS01389552

Expected delivery within 24 Hours