Say inside of a class Card, you have declared
typedef enum {
CLUBS, DIAMONDS, HEARTS, SPADES
} Suit
and a
typedef enum {
SIX, SEVEN, EIGHT ..
} Value
and a designated initializer
-(id) initWithValue: (Value) c andSuit: (Suit) s;
How then would you use this initializer from outside of a class?
I tried:
[Card alloc] initWithValue: (Card) Value.SIX andSuit: (Card) Suit.HEARTS];
Please assist
1 Answer