Kotlin, Kotlin Design Patterns, Kotlin Abstract Factory, Kotlin Factory.
Objects. Objects Objects For simplicity, the concrete classes will print their type. Walls interface Wall { fun collide() } class CastleWall : Wall { override fun collide() { println("Colliding with CASTLE wall") } } class PyramidWall : Wall { override fun collide() { println("Colliding with