Skip to content

Instantly share code, notes, and snippets.

@Mikedgs
Created May 20, 2014 07:13
Show Gist options
  • Select an option

  • Save Mikedgs/0d9fd903eabdbc42f508 to your computer and use it in GitHub Desktop.

Select an option

Save Mikedgs/0d9fd903eabdbc42f508 to your computer and use it in GitHub Desktop.
Classes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Employees
{
class Nurses : Employees
{
public string TypeOfNurse { get; set; }
public Nurses(long salary, long yearsOfEmployment, List<string> workingHours, string healthStatus, string name, int leaveDays, string userName, string password, long employeeID, string typeOfNurse)
: base(salary, yearsOfEmployment, workingHours, healthStatus, name, leaveDays, userName, password, employeeID)
{
this.TypeOfNurse = typeOfNurse;
this.AccessLevel = "Nurse";
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Employees
{
class Doctors : Employees
{
public string TypeOfDoctor { get; set; }
public Doctors(long salary, long yearsOfEmployment, List<string> workingHours, string healthStatus, string name, int leaveDays, string userName, string password, long employeeID, string typeOfDoctor)
: base(salary, yearsOfEmployment, workingHours, healthStatus, name, leaveDays, userName, password, employeeID)
{
this.TypeOfDoctor = typeOfDoctor;
this.AccessLevel = "Doctor";
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Employees
{
class Receptionists : Employees
{
public List<string> Responsibilities { get; set; }
public Receptionists(long salary, long yearsOfEmployment, List<string> workingHours, string healthStatus, string name, int leaveDays, string userName, string password, long employeeID, List<string> responsibilities)
: base(salary, yearsOfEmployment, workingHours, healthStatus, name, leaveDays, userName, password, employeeID)
{
this.Responsibilities = Responsibilities;
this.AccessLevel = "Receptionist";
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Employees
{
abstract class Employees
{
public long Salary { get; set; }
public long YearsOfEmployment { get; set; }
public List<string> WorkingHours { get; set; }
public string HealthStatus { get; set; }
public string Name { get; set; }
public int LeaveDays { get; set; }
public string UserName { get; set; }
private string Password { get; set; }
public long EmployeeID { get; set; }
public string AccessLevel { get; set; }
public Employees(long salary, long yearsOfEmployment, List<string> workingHours, string healthStatus, string name, int leaveDays, string userName, string password, long employeeID)
{
this.Salary = salary;
this.YearsOfEmployment = yearsOfEmployment;
this.WorkingHours = workingHours;
this.HealthStatus = healthStatus;
this.Name = name;
this.LeaveDays = leaveDays;
this.UserName = userName;
this.Password = password;
this.EmployeeID = employeeID;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Employees
{
class Janitors : Employees
{
public List<string> Responsibilities { get; set; }
public Janitors(long salary, long yearsOfEmployment, List<string> workingHours, string healthStatus, string name, int leaveDays, string userName, string password, long employeeID, List<string> responsibilities)
: base(salary, yearsOfEmployment, workingHours, healthStatus, name, leaveDays, userName, password, employeeID)
{
this.Responsibilities = responsibilities;
this.AccessLevel = "Janitor";
}
public int SizeOfBrush { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment