Kotlin have new feature of sealed class in 1.5.0, ...
# announcements
f
Kotlin have new feature of sealed class in 1.5.0, which we can extend sealed class within the same package, maybe now we can implement
package private
with sealed and protected?
g
how is it related?
f
for example:
Copy code
sealed class Example {
    protected val protectedValue = 123
}
then we can access
protectedValue
within the same package by creating a subclass, but impossible to do that in other package