title: Purpose of private members in a class
body: <p>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?</p>