Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import CompanySalaryApplication._
object CompanyBBonus:
given companyBonus: CompanyBonus = CompanyBonus(2000)
object CompanyB extends App with SalaryComputation:
import CompanyBBonus.given
val julie = Employee("Julie", 8000)
val julia = Employee("Julia", 10000)
val employees = List(julie, julia)
val employeeAndSalary = => -> computeSalary(emp))
println(s"Map of employee and salary for company B is $employeeAndSalary")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment