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...
The ________ property determines whether data can be entered into the field on the form
A) Locked B) Tab Stop C) Tab Control D) Enabled
Computer Science & Information Technology
The Comments group is located on the ________
A) status bar B) Review tab C) Quick Access Toolbar D) Insert tab
Computer Science & Information Technology