Kotlin, Kotlin Design Patterns, Kotlin Abstract Factory, Kotlin Factory.
PYRAMID wall") } } Floors interface Floor { fun walk() } class CastleFloor : Floor { override fun walk() { println("Walking on CASTLE floor") } } class PyramidFloor : Floor { override fun walk() { println("Walking on PYRAMID floor") } } Factories Factories Again, for simplicity, I won’t add any