|
-
Oct 8th, 2005, 02:32 AM
#1
Thread Starter
Frenzied Member
Enumeration in Interface
Can one create a variable of which the type is an enumeration in an Interface class?
For instance:
I created an interface called IResource. The resource will either be a code file, image, document, etc.
So, I want to create an enumeration (ResourceTypes), and in the interface declare a property "ResourceType" whose value will be a member of the ResourceTypes enumeration, and will be set in derived classes.
I'm new to actually using interfaces, etc
Last edited by StrangerInBeijing; Oct 8th, 2005 at 09:17 PM.
Reason: Resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|