When you employ ____, your data can be altered only by the methods you choose and only in ways that you can control.
A. virtual method calls
B. polymorphism
C. information hiding
D. inlining
Answer: C
You might also like to view...
Why do you not get an undefined reference in virtual table error when you don’t define a pure virtual function?
What will be an ideal response?
Answer the following questions true (T) or false (F)
1. Suppose a programmer supplies the ampersand for call-by-reference in a prototype, but forgets to put the ampersand in the definition. The compiler will nevertheless correctly interpret the programmer’s intent and compile the function. 2. Mixing call-by-reference and call-by-value parameters is strictly prohibited.
The four primary operations on data can be expressed by which acronym?
a) JUNK b) CRUD c) LIFO d) FIFO e) LIST
Assume that the pop function, called on lines 4, 5, and 6, stores the number popped from the stack in the value variable. What will the statement on line 7 display?
Given the following code, assume the myStack object is a stack that can hold integers and that value is an int variable. ``` 1 myStack.push(0); 2 myStack.push(1); 3 myStack.push(2); 4 myStack.pop(value); 5 myStack.pop(value); 6 myStack.pop(value); 7 cout << value << endl; ``` a. 0 b. 1 c. 2 d. None of these