CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: DivideByZero

Search: Search took 0.02 seconds.

  1. Re: Enum: how to call an enum constant's own method?

    Dlorde: thanks!!

    But I'm still a bit confused.
    The way I see it (which may be wrong :-) ) is ENUMCONSTANT1 and ENUMCONSTANT2 are named objects of type EnumType, and ENUMCONSTANT3 is a named...
  2. Re: Enum: how to call an enum constant's own method?

    I think I know how to show code now:


    public enum EnumType {
    ENUMCONSTANT1,
    ENUMCONSTANT2,
    ENUMCONSTANT3 {
    void constant3sOwnMethod() {
    }
    }
  3. Enum: how to call an enum constant's own method?

    Hi,
    I'm a Java and Codeguru newbie, so please don't be too harsh.
    I'm currently having this issue with enum: I'm creating an enum type that has several enum constants, one of which has its own...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured