Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Employee
- {
- private string name;
- private decimal salary;
- private string position;
- private string department;
- private string email;
- private int age;
- public string Name
- {
- get { return this.name; }
- set { this.name = value; }
- }
- public decimal Salary
- {
- get { return this.salary; }
- set { this.salary = value; }
- }
- public string Position
- {
- get { return this.position; }
- set { this.position = value; }
- }
- public string Department
- {
- get { return this.department; }
- set { this.department = value; }
- }
- public string Email
- {
- get { return this.email; }
- set { this.email = value; }
- }
- public int Age
- {
- get { return this.age; }
- set { this.age = value; }
- }
- public Employee()
- {
- this.Age = -1;
- this.Email = "n/a";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement