Created
April 15, 2012 11:09
-
-
Save tnngo2/2391947 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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