myanmarlinks
6/9/2019 - 2:28 AM

Kotlin Classes and Objects

Kotlin Classes and Objects

fun main(args: Array<String>) {
    val second = Second("Aung Aung", "Hledan")
    println(second.name)
    println(second.address)
}
open class First(val name: String)
class Second(name: String, val address: String) : First(name)