Computer scienceProgramming languagesKotlinObject-oriented programmingObject-oriented programming usage

Sealed class and interface

Enum vs sealed class

Report a typo

An enum is a container for a collection of constants, while a sealed class is a container of fixed subclasses.

Select one option from the list
___

Create a free account to access the full topic