Behind the scenes of public, private and protected
问题 I try to dive deeper and understand the differences between Public | Private | Protected in a low level perspective, in C++. How are the differences between the three expressed in the memory? 回答1: private , public and protected does not cause members to be stored in specific regions of memory. The access is checked by the compiler. On the very lowest level, there is no difference. However, access specifiers do have an effect on what guarantees you get on the order in which class members are