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