Returning references to non-const, private data:
a. Allows private functions to be modified.
b. Is only dangerous if the binary scope resolution operator (::) is used in the function prototype.
c. Allows private member variables to be modified, thus “breaking encapsulation.”
d. Results in a compiler error.
c. Allows private member variables to be modified, thus “breaking encapsulation.”
You might also like to view...
Critical Thinking QuestionsCase H-2Jane would like to export a blend that she created as an animation. She has opened the appropriate dialog box, but she now has to select the correct export options. If Jane would like to have each subsequent frame added to the next object in the blend, she would select the ____ option.
A. Sequence B. Build C. Advance D. Layers
Which of the following parameter data types is NOT one that is particularly important to specify when using parameters?
A) Number B) Currency C) Data/Time D) Text
What keyword can be used to create a named identifier for a memory location whose contents cannot change?
A. final B. static C. const D. fix
Which tool enables you to create a video of what happens on your computer screen?
a.Machinima b.Screen capture software c.Streaming d.Webcam