Results 1 to 3 of 3
Thread: Enumerated Types
- 01-27-2011, 05:31 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 1
- Rep Power
- 0
Enumerated Types
I recently discovered that enum type is a special class, constructors can be formed, instance variables, and the enum data declaration can posses a primitive type.
My question is, in the general sense:
I would like to better understand this. I know I can create a variable of Foo such as Foo morePoo and access the , and ; using the names but I just don't know how well. Strong application in parsing and compiler design.Java Code:private enum Foo { COMMA (","), SEMICOLON (";"); private String poo Foo (String poo) { this.poo = poo; private String poo {return poo}; }
Thank you for the info
- 01-27-2011, 06:44 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,561
- Rep Power
- 11
- 01-27-2011, 08:18 AM #3
Similar Threads
-
A default Enumerated type
By Newbie666 in forum New To JavaReplies: 0Last Post: 04-17-2010, 04:57 AM -
Help with sorting two types:
By twcast in forum New To JavaReplies: 2Last Post: 02-11-2010, 04:37 PM -
types of stacks
By vendetta in forum New To JavaReplies: 3Last Post: 02-06-2010, 03:58 AM -
how do I Parse Enumerated types?
By gcampton in forum New To JavaReplies: 5Last Post: 10-12-2009, 10:41 AM -
Problem using enumerated types
By Stryker4526 in forum New To JavaReplies: 3Last Post: 10-10-2009, 03:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks