Which of the following statements is false?
A) Always try to localize the effects of changes to a class' data members by accessing and manipulating the data members through their set and get functions.
B) Services useful to the client should typically be provided in the class' private interface. Change is the rule rather than the exception. You should anticipate that your code will be modified.
C) Providing public set and get functions does allow clients of the class to access hidden data, but only indirectly.
Correct Answer:
Verified
Q1: A default constructor:
A) Is a constructor that
Q7: The type of function a client would
Q19: If a member function of a class
Q20: Utility functions:
A) Are private member functions that
Q25: A client changing the values of private
Q26: Given the class definition:
Class CreateDestroy
{
Public:
CreateDestroy) { cout
Q28: Which of the following statements is not
Q29: When independent software vendors provide class libraries
Q32: Which of the following statements is not
Q33: Returning references to non-const, private data:
A) Allows
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