user.kt
class User{
var id : Int = 0 var name : String = "" var age : Int = 0 constructor(name:String,age:Int){ this.name = name this.age = age } constructor(){ }
}
海外の方のサンプルapp
を見ながらkotlinを勉強しています
下のconstructorの意味を教えてくだい
投稿2018/11/10 19:39
user.kt
class User{
var id : Int = 0 var name : String = "" var age : Int = 0 constructor(name:String,age:Int){ this.name = name this.age = age } constructor(){ }
}
海外の方のサンプルapp
を見ながらkotlinを勉強しています
下のconstructorの意味を教えてくだい
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。