목록data class (1)
Foggy day

If you declare a value of variable in constructor, you don't need add parameter when you create class. class KotlinPlayGroundActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_kotlin_play_ground) val person = Person("jinhan") println("person name : ${person.name}, registered : ${person.register..
Kotlin
2021. 3. 15. 21:27