Jio interview question

Sealed classes Sealed class vs enum