|
-
May 22nd, 2008, 11:37 AM
#1
why data members should keep private?
-
May 22nd, 2008, 11:41 AM
#2
Re: why data members should keep private?
To protect the integrity of your class and to relieve users of the class of the burden of needing to know the implementation details.
-
May 22nd, 2008, 11:45 AM
#3
Re: why data members should keep private?
This question has been answered at length here many times....
Why dont you just do a search, instead of asking volunteers to do it for you????
If you read some posts and dont understand the reasons, then by all means ask specific questions.....
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
-
May 22nd, 2008, 12:17 PM
#4
Re: why data members should keep private?
A better question: Why *not*?
-
May 22nd, 2008, 12:27 PM
#5
Re: why data members should keep private?
I'm searching answers too...
that's why i posted my question here so that somebody could help in searching while I'm searching too... it is easier right?....there is somebody helping you to do the task....working together.....
why data member should keep private?
data member under class under C++.....should make it private........why......
clear...what dya think?....
Last edited by richard_tominez; May 22nd, 2008 at 01:19 PM.
Reason: to make my reply easier to understand
-
May 22nd, 2008, 12:46 PM
#6
Re: why data members should keep private?
 Originally Posted by richard_tominez
naghahanap din naman ako ng sagot ah...
kaya nga ako nagpost dito para mapadali yung paghahanap ko ng sagot kasi may tutulong sa akin habang naghahanap ako.....
yung tanong ko klaro naman nasa C++ non-visual issues
kapag sinabing data members tumutukoy iyon sa class....
ano ba problema mo tol?!!!
Oh snap!
-
May 23rd, 2008, 12:36 AM
#7
Re: why data members should keep private?
-
May 26th, 2008, 12:00 PM
#8
Re: why data members should keep private?
Thanks for your help!
Topic Solved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|