You can just make the set private like ``` va...
# announcements
r
You can just make the set private like
Copy code
var countGets: Int = 0
        get() = ++field
        private set
so that anyone outside the class or .kt file (it depends on where you declare the property) cannot modify it.