Example #1
0
        void OnEnable()
        {
            Debug.Log("------------------");
            Debug.Log("TEMPLATE METHOD DESIGN PATTERN");

            Hoagie cust12Hoagie = new ItalienHoagie();

            cust12Hoagie.MakeSandwich();

            Hoagie cust13Hoagie = new VeggieHoagie();

            cust13Hoagie.MakeSandwich();
        }
        static void Main(string[] args)
        {
            Hoagie cust12Hoagie = new ItalianHoagie();

            cust12Hoagie.MakeSandwich();


            Hoagie cust13Hoagie = new VeggieHoagie();

            cust13Hoagie.MakeSandwich();

            Console.ReadKey();
        }
        void OnEnable()
        {
            Debug.Log ("------------------");
            Debug.Log ("TEMPLATE METHOD DESIGN PATTERN");

            Hoagie cust12Hoagie = new ItalienHoagie();
            cust12Hoagie.MakeSandwich();

            Hoagie cust13Hoagie = new VeggieHoagie();
            cust13Hoagie.MakeSandwich();
        }