Question: (in c++) Write the two concrete classes Cat and Dog. The class Cat has also a function called play. Write only a cout statement in
(in c++) Write the two concrete classes Cat and Dog. The class Cat has also a function called play. Write only a cout statement in each file. For example, the function eat for Cat class should display I am a cat and I am eating.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
