Solved

Given the Following Class Definition, What Is Missing

Question 39

Multiple Choice

Given the following class definition, what is missing?
Class ItemClass
{
Public:
ItemClassint newSize, float newCost) ;
Int getSize) ;
Float getCost) ;
Void setSizeint newSize) ;
Void setCostfloat newCost) ;
Private:
Int size;
Float cost;
};


A) nothing
B) a default constructor
C) accessor functions
D) mutator functions

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions