Esempio n. 1
0
        public static void ThirdDemo()
        {
            var        living = new Cat();
            IPresenter tiger  = new Tiger();
            IPresenter zebra  = new Zebra();

            tiger.Introduce(8, "Djini");

            living.presenter = tiger;
            living.presenter.Introduce(22, "Qnko");

            living.presenter = zebra;
            living.presenter.Introduce(15, "Nina");
        }