JohnAnders :
When the Kotlin code is compiled into Java byte code what happens with private class. I ask it, because private classes are absent in Java.
Andrey Molochko :
When the Kotlin code is compiled into Java byte code modificators private
, protected
and public
is saved. But There are two exceptions, internal turns into public
, because modificator internal is absent in java. And modificator private
with class turns into default
.
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=422747&siteId=1