enum MealType { "rice", "noodles", "other" }; interface Meal { attribute MealType type; attribute float size; // in grams void initialize(MealType type, float size); };