Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.