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

Computer Science & Information Technology

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

Computer Science & Information Technology

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

Computer Science & Information Technology

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

Computer Science & Information Technology

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

Computer Science & Information Technology