1 2 3 4 5 6 7 8
enum MealType { "rice", "noodles", "other" }; interface Meal { attribute MealType type; attribute float size; // in grams void initialize(MealType type, float size); };