Assignment: In this program, you will create an object and display it. Create a class rabbit that… 1 answer below »

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper HERE Order a Different Paper HERE

Assignment: In this program, you will create an object and display it. Create a class rabbit that includes data members color (string), age (int), and number of bunny children (int). Your class should have a constructor with three parameters. Assume that color and number of children is correct, but check to make sure age is less than 20. If it isn't, set the age to 1. Provide a set and get function for each data member. Provide a member function displayBunny that displays the color, age, and number of baby bunnies. This program does not need to accept input. Simply demonstrate the program with data of your choosing. Run your program with three different sets of data.