0
KOTLIN Restricting Access
Restricting Access Someone modified your code to restrict public access to the width and height properties. However, there are mistakes in the code and it does not run. Fix the given code, so that width and height are accessible only in the derived classes, and the class functions are accessible from main.
2 Réponses
+ 3
The "protected" modifier gives access to methods and properties only for derived classes.
0
ready i was confused because i didnt needed to change "public. "