Skip to content

var: 用此关键字声明的变量表示可变变量,即可读且可写。相当于Java中普通变量

val: 用此关键字声明的变量表示不可变变量,即可读且不可写。相当于Java中用final修饰的变量

In case I don't see you. Good afternoon, good evening, and good night.