Given the following class definition, what is missing?

class ItemClass
{
public:
ItemClass(int newSize, float newCost);
int getSize();
float getCost();
void setSize(int newSize);
void setCost(float newCost);
private:
int size;
float cost;
};
a. nothing
b. a default constructor
c. accessor functions
d. mutator functions


b. a default constructor

Computer Science & Information Technology

You might also like to view...

Which variables and functions would not be inherited by the child class?

A. protected functions only. B. private variables and functions. C. public variables and functions. D. protected variables only.

Computer Science & Information Technology

When you move a file or folder, Windows makes a duplicate copy of the file.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which property of mutual exclusion primitives is inappropriate for multiprocessor systems?

a) The solution is implemented purely in software on a machine without specially designed mutual exclusion machine-language instructions. b) No assumption can be made about the relative speeds of asynchronous concurrent threads. c) A thread that is executing instructions outside its critical section cannot prevent any other threads from entering their critical sections. d) A thread must not be indefinitely postponed from entering its critical section.

Computer Science & Information Technology

If you want to rotate an object from a specific point, other than the object's center point, you should ____.

A. click the Rotate tool, then click the point B. click the Rotate tool, click the point, then click the Selection tool C. double-click the Rotate tool D. use the Free Transform tool

Computer Science & Information Technology