• 2022-10-24
    写出下面程序的运行结果:[br][/br] private class Person6 { var lastName: String = "zhang" var no: Int = 100 var heiht: Float = 145.4f } fun main(args: Array[String]) { var Person1: Person6 = Person6() Person1.lastName = "wang" println("lastName:${Person1.lastName}") Person1.no = 9 println("no:${Person1.no}") Person1.no = 20 println("no:${Person1.no}") }
  • 举一反三