package codesample.kotlin.sandbox.classes

data class Dude(val name: String,
                val surname: String,
                val age: Int) {
    val someProp : String
        get() = "getter is called!"
}

fun main(args: Array<String>) {
    val ivan = Dude("Ivan", "Ivanov", 15)
    println(ivan.toString() + " ivans hash: " + ivan.hashCode())

    /* This may seem like accessing a public field... but it's not! This access actually
    * call a getter on some prop */
    println(ivan.someProp)
}
Add data class examle. Also getters/setters are wierd in Kotlin!
Add data class examle. Also getters/setters are wierd in Kotlin!

aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api