Properties are a type of class member , that are exposed to outside world as a pair of Methods.For example for the static field Minsalary, we will Create a property.
private double minimumSalary;
public static double MinSalary
{
get
{
return minSalary;
}
set
{
minSalary = value;
}
}
So when we execute the following lines code
double minSal = Employee. MinSalary;
get Method will get triggered and value in minimumSalary field will be returned.When we execute ,
Employee. MinSalary = 3000;
set Method will get triggered and value will be stored in minimumSalary field .