“Each enum constant is an object.” I use this to d...
# announcements
c
“Each enum constant is an object.” I use this to decide if I need an Enum or sealed class.
👍 2
g
@Jakub ☝️ This is actually main reason. Sealed classes make sense if you create instance of them, this is pretty obvious difference actually, but completely forgot. So if your section can have multiple instances, then you have no choice to use data classes.
👍 1