📜  kotlin 代码示例中的 var 和 val 有什么区别

📅  最后修改于: 2022-03-11 14:53:34.379000             🧑  作者: Mango

代码示例1
variables defined with var are mutable(Read and Write)

variables defined with val are immutable(Read only)