In your driver you should create at least 2 different


In this program, you are to create a class that allows you to generate a number of different plants. You must think about what characteristics a plant has such as:plant type, whether or not it's a conifer or deciduous, has flowers or not, etc.As for methods, you should have at least a number of methods including getters and setters for your attributes, a method allowing you to add water which should increase the size of the plant, and a toString method. Keep in mind, each plant should grow at a different rate when you add water.In your driver, you should create at least 2 different plants, after you instantiate a plant, you should print out the information about the plant, then water the plant at least three times and then print out the plant again.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: In your driver you should create at least 2 different
Reference No:- TGS0667350

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)