Skip to content

Instantly share code, notes, and snippets.

@tnngo2
Created April 15, 2012 11:09
Show Gist options
  • Save tnngo2/2391947 to your computer and use it in GitHub Desktop.
Save tnngo2/2391947 to your computer and use it in GitHub Desktop.
class SalaryDetails
{
private string _empName;
private int _changeCount;
public SalaryDetails()
{
_changeCount = 0;
}
public string EmployeeName
{
get { return _empName; }
set { _empName = value;
_changeCount++;
}
}
static void Main(string[] args)
{
SalaryDetails objSal = new SalaryDetails();
objSal.EmployeeName = "John Kenedy";
Console.WriteLine("Employee Name : " + objSal.EmployeeName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment