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...
When you move the pointer over the icon for a property value on the ___________ panel, a tooltip displays "CSS:" followed by the property name.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
To join a social network, you sign up for a free account and fill out your _____________.
Computer Science & Information Technology