Slide 16
Slide 16 text
fun buildKitten(name: String,
color:Color = Color.Black,
sex: Sex = Sex.Female,
race: Race = Race.Siberian): Kitten {
return Kitten(name, color, sex, race)
}
val kitten = buildKitten("Lucy", color = Color.Gray)
Functions - default & named arguments