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

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.

We are the Best!

course-preview

275 words per page

You essay will be 275 words per page. Tell your writer how many words you need, or the pages.


12 pt Times New Roman

Unless otherwise stated, we use 12pt Arial/Times New Roman as the font for your paper.


Double line spacing

Your essay will have double spaced text. View our sample essays.


Any citation style

APA, MLA, Chicago/Turabian, Harvard, our writers are experts at formatting.


We Accept

Secure Payment
Image 3