개발 일지/똑똑이
코틀린 var , val 차이.
hackee
2018. 8. 8. 13:07
var는 읽고쓰기가능한 변수선언할때 쓰고
val는 상수형 변수 선언이네.
variables defined with var are mutable(Read and Write)
variables defined with val are immutable(Read only)