Difference between variables and properties

example of variable:

private int experience

example of property:

public int Experience {
    get{
       return experience;
    }
    set{
       experience = value;
    }
}

Reason for using the property:

  1. use for access date outside the class
  2. can set read only or write only
  3. can implement functions within set and get