Saturday, April 28, 2012

Why can’t enum extends any other class?

By default, all enums implicitly extend java.lang.Enum. And as we know, Java doesn't support multiple inheritance, an enum cannot extend any other class.

No comments:

Post a Comment