If a certain object’s data members need to be frequently modified by const functions, it is best to: a. Declare the member values non-const. b. Declare the member values mutable. c. Use const_cast to make the member values modifiable. d. Use static_cast to make the member values modifiable.
a. Declare the member values non-const.
b. Declare the member values mutable.
c. Use const_cast to make the member values modifiable.
d. Use static_cast to make the member values modifiable.
b. Declare the member values mutable.
Computer Science & Information Technology
You might also like to view...
Which function call is correct for the function named PassThis which passes the Table array?
```int Table[4][3]={3, 2, 8, 6, 7, 4, 1, 5, 8, 0, 9, 1};``` A. PassThis(Table); B. void PassThis(Table); C. PassThis(Table[4][3]); D. None of the above.
Computer Science & Information Technology
Which of the following measures the amount of time required by the storage device to retrieve data and programs?
A. RAM B. nonvolatile media C. capacity D. access speed
Computer Science & Information Technology