What happens when you try to subclass an enum?
Correct answer
Compile-time error
Explanation
You cannot subclass an enum, and trying to do so results in a compile-time error.
Update: Dhruva Jagannath added a tag on this question
Topics
By Dhruva Jagannath · · 33 views