class User {
var name: String //名前
var age: Int //年齢
var prefecture: String //出身県
var height: Int //身長
init(name: String, age: Int, prefecture: String, height: Int ) {
self.name = name
self.age = age
self.prefecture = prefecture
self.height = height
}
}
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00