Question OOP-ENC-0020
HardIn C++, can private members of one object be accessed by another object of the same class?
- A.
Yes — access control is per class, not per object
- B.
Only through friend functions
- C.
Sign up free to see the answer and a step-by-step explanation.