Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   protected data VS private data... (http://www.go4expert.com/forums/protected-data-vs-private-data-t10228/)

samuelwhalley 24Apr2008 23:18

protected data VS private data...
 
Hi....

any idea...
I've been told to never use protected data, and instead to always use private data with protected access functions. Is that a good rule???why??
can you give a brief explanation to this...???


THANKS in advance expert.....

shabbir 25Apr2008 11:38

Re: protected data VS private data...
 
It all depends on your context and there is no such golden rule.


All times are GMT +5.5. The time now is 20:30.