what is the meaning of PRIVATE members
i think one of their purpose is to protect us from wrongly changing them, am i right?
This is a discussion on private variables within the C++ Programming forums, part of the General Programming Boards category; what is the meaning of PRIVATE members i think one of their purpose is to protect us from wrongly changing ...
what is the meaning of PRIVATE members
i think one of their purpose is to protect us from wrongly changing them, am i right?
they're members that aren't accessible outside the class. yes, the primary purpose is to prevent someone from mucking up members that are critical to using the object; another is to keep the interface relevant, clean, and uncluttered.