IN GOD I TRUST, IN JAVA I BELIEVE!
Saturday, April 28, 2012
Why can’t enum extends any other class?
By default, all
enum
s 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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment