inheritance

Job ID: 37323178

Budget: $30 – $250 USD

Based on the concept animal structure create a program using three classes based on the user entering the following instruction: how many meals the animal has, how many times did the animal nap, and how many times the animal either licked, swam, or some other function. A total of meals, naps, and another function should be shown by this program by using single-inheitance using c++

The output is as follows: The animal had 6 hours of sleep, 2 meals a day, and swam 8 times.
Related categories: C Programming C++ Programming