It must be stupid question, but I\'m really new to Kotlin and I didn\'t find any solution.
How to declare class field? Like we can have it in java:
prote
Pulling this out of the comments from Alexander Udalov's answer for visibility. For nullable properties:
protected var sharedPreferences : SharedPreferences? = null
...and assign it a value later.