Originally posted by susan waters:
How can I instantiate a class that is declared in an enum ?
You need to create an instance of myenum by myenum.TEST or by myenum.SAMPLE or by myenum.ENGLISH. All will return you an instance of myenum but remember different instances of myenum.
Since
Testing class is an inner class, so you require an instance of outer class like above.
If Testing is a static nested class, then you don't need any myenum instance and you code will work.
Naseem
[ July 27, 2006: Message edited by: Naseem Khan ]