KFC
2015-10-21 16:14:49 0 举报
KFC建造者模式
作者其他创作
大纲/内容
MealB
+ buildFood() :void+ buildDrink() :void
Waiter
- mealBuilder :MealBuilder
+ setMealBuilder(MealBuilder mealBuilder) :void+ construct() :Meal
MealBuilder { abstract }
- meal: Meal=new Meal()
+ buildFood() :void+ buildDrink() :void+ getMeal() :Meal
Meal
- food:String- drink:String
+ setFood(String food) : void+ setDrink(String drink) : void+ getFood() :String+ getDrink() :String
mealBuilder
meal
MealA
0 条评论
下一页