Read more about the article Sealed Interface

Sealed Interface

A sealed interface restricts which classes or objects can implement it. Only the classes or objects that are defined within the same file (or in the same scope) as the…

Comments Off on Sealed Interface

Kotlin Sealed Class

What are sealed classes? A Sealed class is a class that restricts the inheritance hierarchy by allowing a fixed set of subclasses. All the subclasses must be declared within the…