Suppose that the price of an item is stored as an integer (number of cents) within a data member of a class. When the client wants to set the price, however, a setPrice function is called which passes a number in as dollars and cents (a float), then it is converted and stored as cents by the setPrice function. This is an example of:

A. a const function
B. a const reference function
C. an accessor function
D. data translation


D

Computer Science & Information Technology

You might also like to view...

To display multiple values, it is customary to use Java's ____ operator, which combines two String values into one.

A. concatenation B. addition C. union D. intersection

Computer Science & Information Technology

What is DOCTYPE?

What will be an ideal response?

Computer Science & Information Technology

A(n) ________ is audio, video, or digital media that is delivered over the Internet to a computing device

A) blog B) instant message (IM) C) podcast D) wiki

Computer Science & Information Technology

A ________ is a graphic representation of data

A) Legend B) Chart C) List D) Style

Computer Science & Information Technology