sailxjx
01/22/2017, 7:23 AMgetter method to define the type of variables:
val myString get() = "hi"
However, when I use var myString get() = “hi”, I got an error message “Property must be initialized”, I think it should work on both val and var.