Why can I access private variables in the copy
constructor?
The access modifiers work on class level, and not on
object level.That is, two objects of the same class can access each others
private members. stackoverflow
link
C++ Q&A,布布扣,bubuko.com
时间: 2024-10-21 18:29:37