Exemplo n.º 1
0
        public static IKitchen GetCook(CookName CookName)
        {
            IKitchen kitchen = null;

            switch (CookName)
            {
            case CookName.鱼香肉丝:
                kitchen = new YXRSCook();
                break;

            case CookName.宫保鸡丁:
                kitchen = new GBJDCook();
                break;

            default:
                break;
            }
            return(kitchen);
        }
Exemplo n.º 2
0
        public override IKitchen CreateCook()
        {
            IKitchen kitchen = new YXRSCook();

            return(kitchen);
        }