Question: Do it with Inherentenc method please not for the construction classes For this project you will start with a base class that will represent animals
For this project you will start with a base class that will represent animals in a zoo: Animal.h and Animal.o. I will provide this base class and the object code needed to link it to your code From this generic type you will inherit derived classes: 1) Mammal Body temperature: double Body temperature high/low: double, double Functions to retum and update Body temperature . . . Boolean function: is body temperature is in range 2) Reptile nvironment-Type: water or land Functions to retum and update Environment-Type From these you will inherit derived classes: a) Mammal i) Elephant . Diet-type: Herbivore Feed-type: Hay Body temp: 97-98 deg . Weight-in-pounds: double (12000 15000) . .Functions to return and update Weight-in-pounds . Boolean function: is body weight in range li) Skunk . Diet-type: Omnivore . Feed-type: grubs and grass shoots . Body temp: 95 - 97 deg . De-scented: bool .Functions to return and update De
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
