The text of this article is not in this database — only its details are. Read it on the old site: The first pillar of object-oriented programming - Encapsulation
3 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

ameetgoaPosted Jan 8, 2013, 7:35 AM
Very nice!!
Muhammad IrshadPosted Oct 4, 2011, 11:49 AM
Thanks for sharing.
HinaPosted Jul 26, 2011, 6:29 AM
Thanks for such a nice explanation. I have one doubt. In "Using Properties':Example,the code is : if(name.IndexOf('?') > 0) {Consol.WriteLine("Illegal Character can not be in the name");} But its throwing error.As per my understanding,it should be something like this: if(value.IndexOf('?') > 0) {Consol.WriteLine("Illegal Character can not be in the name");} Please correct me if I am wrong.