Skip to content

Instantly share code, notes, and snippets.

@rlbisbe
Created October 13, 2015 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlbisbe/fba4ca0128454740dcc7 to your computer and use it in GitHub Desktop.
Save rlbisbe/fba4ca0128454740dcc7 to your computer and use it in GitHub Desktop.
class Intern (salary_param: Int, desk_param: String, startDate_param: Int) extends Employee with InOffice with Temporary {
val salary = salary_param
val desk = desk_param
val stay = 6
val startDate = startDate_param
}
class Developer (salary_param: Int, desk_param: String) extends Employee with InOffice {
val salary = salary_param
val desk = desk_param
}
class Manager (salary_param: Int, location_param: String, reports: Array[Employee]) extends Employee with Remote with Authority {
val salary = salary_param
val location = location_param
val directReports = reports
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment