Question: Write a C++ class, Flower, that has three member variables of type string, int, and float, which respectively represent the name of the flower, its
Write a C++ class, Flower, that has three member variables of type string, int, and float, which respectively represent the name of the flower, its number of pedals, and price. Your class must include a constructor method that initializes each variable to an appropriate value, and your class should include functions for setting the value of each type, and getting the value of each type.
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
include Header files using namespace std class Flower private used private for e... View full answer
Get step-by-step solutions from verified subject matter experts
