Challenge: Setters
Explore how to implement a bi-directional association between Department and Employee classes in Kotlin. Understand how to write a setter for the employee's department property that updates the employee lists of both the old and new departments, ensuring data consistency. This challenge helps you practice Kotlin class properties and custom setters.
Problem statement
In this challenge, you have to implement a bi-directional ...