Need Assistance?

support@tutorialshub.in

Object-Oriented Programming in Kotlin

Properties, Getters, Setters & Visibility

ADVERTISEMENT
Kotlin Free Lesson
5 min read
ADVERTISEMENT

Kotlin generates getters and setters automatically behind the scenes. Restrict writes while keeping reads public using private set.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you