Question: Write a C++ class for fruit basket. The following are the properties: Class name: FruitBasket Fields: apples is an integer equal to the number of
Write a C++ class for fruit basket. The following are the properties: Class name: FruitBasket Fields: apples is an integer equal to the number of apples in the basktet oranges is an integer equal to the number of apples in the basket. Methods: getApples right arrow returns an integer equal to the number of apples getOranges rightarrow returns an integer equal to the number of oranges getTotal right arrow returns the total number of apples and oranges
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
