vs: ``` class World(private val tiles: Array<Ar...
# getting-started
h
vs:
Copy code
class World(private val tiles: Array<Array<Tile>>) {
    private val width: Int
    fun width(): Int {
        return width
    }

    private val height: Int
    fun height(): Int {
        return height
    }

    init {
        this.width = tiles.size
        this.height = tiles[0].size
    }
}