View Single Post
  #2 (permalink)  
Old 01-04-2008, 12:40 AM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
enum and constructors
Hello bugger.

Add the public modifier to the definition of your enumerator. Then use the name of your class as you would when you access static members:

Code:
GTent test = new GTent(0, 0, GTent.ttype.RANGE);
Hope this helped.
__________________
If your ship has not come in yet then build a lighthouse.
Reply With Quote