Results 1 to 6 of 6

Thread: Enumeration in Interface

Threaded View

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Resolved 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
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width