class TestScope5 constructor() {
var name: String = "taro"
var age: Int = 30
// Unit: 返し値 がないことを示す.
fun introduce(name: String, age: Int): Unit {
this.name = name
this.age = age
println("${this.name}、${this.age}歳です")
}
}
fun main() {
val testScope5: TestScope5 = TestScope5()
testScope5.introduce("jiro", 40)
}