Suppose we have an integer data member in a class called errorCode. There is also a function of a class called getError. Since the client cannot understand what the integer value means in the errorCode, the getError function returns a string that gives the meaning of the current integer value. This is an example of:

A. a const reference function
B. a const function
C. data translation
D. poor programming practice


C

Computer Science & Information Technology

You might also like to view...

To successfully implement a supply chain management system, an organization must be able to integrate its systems with its suppliers.

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

Computer Science & Information Technology

Take a picture of a person and mirror it so that the person looks like conjoined twins.

What will be an ideal response?

Computer Science & Information Technology

Giving a local function variable the same name as a global variable will result in which of the following?

a) JavaScript runtime error. b) Data corruption. c) The local function variable will rename itself. d) The local variable will "hide" the global variable.

Computer Science & Information Technology

An object in Visual Basic ____________.

a. is also referred to as an event handler b. is an attribute of a control c. is an action performed by a method d. contains data called properties

Computer Science & Information Technology