Thread
:
Constructor with enum
View Single Post
#
2
(
permalink
)
01-04-2008, 12:40 AM
tim
Senior Member
Join Date: Dec 2007
Location: South Africa
Posts: 334
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.
tim
View Public Profile
Send a private message to tim
Find all posts by tim