Properties in C#
Properties in C# In C# a concept is known as properties know what are the propertites? As we viewed in the previous post the Data members are private in c# so they are not accessible outside the class So this concept came into picture about accesing the data members that is reading and writing purpose one can say to get and set the variable's values by the properties which are private. Now moving on to the basics of properties in C# first we look at the examples Class abc { int qty; public abc() { a=0; } public int Qty//property declared { get//get accessor declared { return qty; } set//set accessor declared { qty=value; } } The above example reveals the architecture of property in C# it has the accessmodifier that is public,private, protected etc...