What is the difference between sealed class vs sealed interface in kotlin
A major reason to choose to use a sealed class instead of interface would be if there is common property/function that you don’t want to be public. All members of an interface are always public. The restriction that members must be public can be worked around on an interface using extension functions/properties, but only if … Read more