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...

Describe different types of relationships with examples:

There are three types of relationships: a. One-to-one (1:1) b. One-to-many (1:M) c. Many-to-many ( M:M or M:N)

Computer Science & Information Technology

Identify the compiler errors and state what is needed to eliminate the error(s).

``` #include using namespace std; void Func1(); int Func2(float); int main { Func2(); n = FUNC1(); } ```

Computer Science & Information Technology