Dinosaurs have several basic characteristics: a species name, height and weight, movement speed, and diet. They also have several basic behaviors: eating, moving, and sleeping.
Define and implement a generic Dinosaur class that defines these characteristics and behaviors. The behaviors can be very basic, just printing out a line saying something like "sleeps". (If you want to make them more elaborate, feel free, but do have some user **output** and make use of the class member fields.) Declare all data member fields as private, and make sure that have accessor and mutator functions for all of the data member fields. The print function that shows all basic behaviors should utilize the C++ overload operator <<.
Make dervied classes to represent the following:
Apatosaurus (a very large, herbivorous, slow-moving dinosaur)
Tyrannosaurus Rex (a very large, carnivorous, fast dinosaur)
Hadrosaur (a medium-sized, herbivorous, fast dinosaur)
For each of these classes, come up with at least two additional pieces of information about that specific dinosaur type (eg for a T-Rex, you might have the number of teeth for dinosaur has). Also, **customize at least one of the sleeping/eating/moving behaviors for each class** as appropriate. (You can make up any details you want if you don't want to bother looking up information about dinosaurs.)
Create a base class that has general information about all dinosaurs and then create appropriate derived classes for specific dinosaurs.
Once you have theses classes, write a C++ main function that:
-creates one of each kind of dinosaur object
-has each one go through its behaviors
-has each one print out its information using an overloaded (<<) print operator
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Must work on a C++ compiler like MS Visual C++.