Purpose of private members in a class

Posted by wrongusername on Stack Overflow See other posts from Stack Overflow or by wrongusername
Published on 2010-03-03T21:11:12Z Indexed on 2010/03/20 1:41 UTC
Read the original article Hit count: 383

What are the purposes of having private/protected members of a class/structure in object-oriented programming? What's the harm in having all members be public?

© Stack Overflow or respective owner

Related posts about class

Related posts about object-oriented-design