please do not copy the other posts they didn't do it correctly. please include Animal.cpp, Dog.cpp, Cat.cpp, Animal.h, D
Posted: Thu Jul 14, 2022 2:28 pm
please do not copy the other posts they didn't do it correctly. please include Animal.cpp, Dog.cpp, Cat.cpp, Animal.h, Dog.h, Cat.h, and Animal Tester.cpp. also make sure its a working program with a screenshot of the output. thank you.
Create the following classes for Animal. Cat. and Dog as defined below using inheritance and abstract functions. Make ase of good C - style by using both h and .cpp files for each class. Animal is an abstract class that will be extended by concrete classes Cat and Dog. All inheritance is to be public. Animal Class The Animal sunerelate chomld nrovida tha follomina momhare- Cat Class This concrete subclass of the Animal class should provide the following members (in addition, or as implementation of the inherited abstract methods).
This concrete subclass of the Ammal class should provide the following members (in addition or as implementation of the inherited abstract methods) The Client (Driver) Main.cpp Provide a driver main function in a file named AnimalTester.cpp that will test each of the aforementioned subclasses and their methods. You should do the following in your main method in orcler to test them - Create a polymorphic ieference to each of the two Animal subclasses O Hint Needs to use the Animail class and pointer (see example in polymorphism lecture slides) - Iest the implementations of all the inherited method through the polymorphiereference difeefly and show that theie workeorrectly - Test the non-inherited methods directly through their respective class object. o Hint This is for two fuffertions doKittyThings.and doDoggithings Louis Cat Meeeoow! Feed me! Purr, Purr, Purr. I'm tearing up your couch with my claws, and leaving dead mice on your pillow! Molly Dog Woof! Woof! Squirrel! I'm digging a hole and burying my bone so the squirrels can't get it! Press any key to continue...
Create the following classes for Animal. Cat. and Dog as defined below using inheritance and abstract functions. Make ase of good C - style by using both h and .cpp files for each class. Animal is an abstract class that will be extended by concrete classes Cat and Dog. All inheritance is to be public. Animal Class The Animal sunerelate chomld nrovida tha follomina momhare- Cat Class This concrete subclass of the Animal class should provide the following members (in addition, or as implementation of the inherited abstract methods).
This concrete subclass of the Ammal class should provide the following members (in addition or as implementation of the inherited abstract methods) The Client (Driver) Main.cpp Provide a driver main function in a file named AnimalTester.cpp that will test each of the aforementioned subclasses and their methods. You should do the following in your main method in orcler to test them - Create a polymorphic ieference to each of the two Animal subclasses O Hint Needs to use the Animail class and pointer (see example in polymorphism lecture slides) - Iest the implementations of all the inherited method through the polymorphiereference difeefly and show that theie workeorrectly - Test the non-inherited methods directly through their respective class object. o Hint This is for two fuffertions doKittyThings.and doDoggithings Louis Cat Meeeoow! Feed me! Purr, Purr, Purr. I'm tearing up your couch with my claws, and leaving dead mice on your pillow! Molly Dog Woof! Woof! Squirrel! I'm digging a hole and burying my bone so the squirrels can't get it! Press any key to continue...