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.
Correct Answer:
Verified
Q25: A client changing the values of private
Q26: If Americans are objects of the same
Q27: The assignment operator (=) can be used
Q28: If the line: friend class A;
Appears in
Q29: Static member functions:
A) Can use the this
Q30: An error occurs if:
A) A non-reference, non-const,
Q31: Inside a function definition for a member
Q32: For a non-constant member function of class
Q34: Which of the following statements will not
Q35: Which of the following statements about friend
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents