please look at this line below carefully for half a minute:
emun Animal{dog, cat, bird, fish, crocodile};
see it ? OK, when we need some varaibles of Animal we could declare it like this:
and the output of myPet should be a zero. what should it do Though it couldnt be output directly ? Maybe string or Array is much more fit for this occasion. any ideas ?PHP Code:
Animal myPet;
myPet=dog;