protected data VS private data...

samuelwhalley's Avatar
Light Poster
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's Avatar, Join Date: Jul 2004
Go4Expert Founder
It all depends on your context and there is no such golden rule.