[Dev-C++] Question about Classes: Public vs. Private.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: <rus...@ao...> - 2007-11-29 14:12:46
|
I'm a bit confused on the private vs public aspects of member data. The book states that by making it private clients won't need to worry about how it's stored or computed (p. 120). However doesn't that same premise hold true for the public members as well? ?What are the advantages of private member data? Thanks, Russ ________________________________________________________________________ More new features than ever. Check out the new AOL Mail ! - http://o.aolcdn.com/cdn.webmail.aol.com/mailtour/aol/en-us/text.htm?ncid=aolcmp00050000000003 |