Hi Rajendra,
Get is called Accessor and Set is called Mutators in .Net
in Oops to preserve DataAbstraction concept we keeps Data member private in class.
now to access that data members from outside world we need some mechanism through which we can use it.
for this we define property which contains Accessor and Mutator.
with this we can give tremendous data abstraction i.e.
class Example
{
//can read and assign from outside
Public Member1{get;set;}
//Read only member
Public Member2{get;}
//Read only for outside
Public Member{get;private set;}
}
Mark this as answer, if it helps you...........
Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/
Patel28rajendra, if this helps please login to Mark As Answer. | Alert Moderator