Enums in Kotlin.
package academy.learnprogramming.inheritance.inheritance
fun main() {
println(Department.ACCOUNTING.getDeptInfo())
}
enum class Department (val fullName: String, val numEmployees: Int){ // In Kotlin we declare enums as a class
HR("Human Resources", 5), IT("Information Technology", 10), ACCOUNTING("Accounting", 3), SALES("Sales", 20); // Need to close the list with ;
fun getDeptInfo() = "The $fullName department has $numEmployees employees"
}
