Chapter 1: Problem 11
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.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.