| Author |
Abstract Method in enum
|
Sandeep Chhabra
Ranch Hand
Joined: Aug 28, 2005
Posts: 340
|
|
Hi, When we declare some abstract method in a class, we need to make the class abstract. but when we declare an abstract method in an enum we need not do it. Why is it so? Sandy
|
Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
|
 |
Joseph Clark
Ranch Hand
Joined: Sep 10, 2005
Posts: 48
|
|
the Enum type is implicitly abstract, like a Java interface. The signature is: public abstract class Enum<E extends Enum<E>> extends Object implements Comparable<E>, Serializable
|
 |
 |
|
|
subject: Abstract Method in enum
|
|
|