Advertisement
Danny_Berova

06.CompanyRooster-Employee

Feb 14th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. public class Employee
  2. {
  3.     //name, salary, position, department, email and age.
  4.  
  5.     public string Name { get; set; }
  6.     public decimal Salary { get; set; }
  7.     public string Position { get; set; }
  8.     public string Department { get; set; }
  9.     public string Email { get; set; }
  10.     public int Age { get; set; }
  11.  
  12.       public Employee(string name, decimal salary, string position, string department)
  13.     {
  14.         this.Name = name;
  15.         this.Salary = salary;
  16.         this.Position = position;
  17.         this.Department = department;
  18.         this.Email = "n/a";
  19.         this.Age = -1;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement