Multiple Choice
Given the following class and object declaration, how would you print out the age and cost of a bottle of wine?
Class Wine
{
Public:
Wine) ;
Int getAge) ;
Float getCost) ;
Private:
Int age;
Float cost;
}
Wine bottle;
A) cout << bottle;
B) cout << Wine.age, Wine.cost;
C) cout << bottle.getAge) << bottle.getCost) ;
D) cout << bottle.getAge << bottle.getCost;
E) cout << bottle.age << bottle.cost;
Correct Answer:

Verified
Correct Answer:
Verified
Q29: Data members or member functions of a
Q30: The constructor of a class that does
Q31: In the following class constructor definition, the
Q32: A member function that allows the user
Q33: Developing an ADT means that the user
Q35: In a class, all members are _
Q36: When defining a class, the class should
Q37: In a structure definition, the identifiers declared
Q38: A Member function that allows the user
Q39: Given the following class definition, what is