The text of this article is not in this database — only its details are. Read it on the old site: Learn Object Oriented Programming Using C#: Part 2
5 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Learn Object Oriented Programming Using C#: Part 2
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
SubashPosted Jul 22, 2016, 12:35 AM
You Are great sir
Santosh YadavPosted Oct 15, 2013, 6:00 AM
If we use public variable instead of private string MyBikeColor then it will also work fine. So can you tell me that what is the need to use properties ? Actually i'm not able to understand the same difference.
Naveed ZamaneditedPosted May 11, 2013, 1:43 AMEdited May 11, 2013, 1:43 AM
Thanks Sam its really helpful
Sam HobbsPosted May 10, 2013, 3:01 PM
http://stackoverflow.com/questions/1568091/why-use-getters-and-setters