Question: a . How many members does class foodType have? b . How many private members does class foodType have? c . How many constructors does

a. How many members does class foodType have?
b. How many private members does class foodType have?
c. How many constructors does class foodType have?
d. How many constant functions does class foodType have?
e. Which constructor is used to initialize the object fruit1? Which constructor is used to initialize the object fruit2?
f. Rewrite the definition of the class foodType so that each data member can be set individually.
g. Write a C++ statement to replace the definition of the constructors with a constructor with default parameter.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!