Learn about getters and setters, and why you don’t need to create them in most cases.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4736-programming-in-kotlin/lessons/67
Learn about getters and setters, and why you don’t need to create them in most cases.
Hello Kevin, At 0:16 point of video you say val
for mutable and var
for immutable, isnt it the other way round? I got to know from subtitles which I keep on.
Thanks
You are right! Good catch