Sealed Class

Kotlin Sealed Class in Inner Class

This type is sealed, so it can be inherited by only its own nested classes or objects

Return Tuple With Type Identifier And Data Using Sealed Classes (Kotlin)