class member access specifiers
Posted
by pdehaan
on Stack Overflow
See other posts from Stack Overflow
or by pdehaan
Published on 2010-05-03T16:55:18Z
Indexed on
2010/05/03
16:58 UTC
Read the original article
Hit count: 131
I understand what the typical access specifiers are, and what they mean. 'public' members are accessible anywhere, 'private' members are accessible only by the same class and friends, etc.
What I'm wondering is what, if anything, this equates to in lower-level terms. Are their any post-compilation functional differences between these beyond the high-level restrictions (what can access what) imposed by the language (c++ in this case) they're used in.
Another way to put it - if this were a perfect world where programmers always made good choices (like not accessing members that may change later and using only well defined members that should stay the same between implementations), would their be any reason to use these things?
© Stack Overflow or respective owner