常用模式之Command模式入门
1 package com.zhao.cmd.a; 2 3 /** 4 * 客户端调用 5 * 烧烤摊 6 * 7 * @author LuZhao 8 * 9 */ 10 public class App { 11 public static void main(String[] args) { 12 Barbecuer boy = new Barbecuer(); 13 boy.BakeMutton(); 14 boy.BakeMutton(); 15 boy.BakeMutton(); 16 boy.BakeChickenWing(); 17 boy.BakeMutton(); 18 boy.BakeMutton(); 19 boy.BakeChickenWing(); 20 } 21 }