A client changing the values of private data members is:
A) Only possible by calling private member functions.
B) Possible using public functions and references.
C) Never possible.
D) Only possible if the private variables are not declared inside the class.
Correct Answer:
Verified
Q20: Utility functions:
A) Are private member functions that
Q21: The code fragment: Increment::Increment(int c, int i)
:
Q22: Assume that t is an object of
Q23: When composition (one object having another object
Q24: Static data members of a certain class:
A)
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,
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