Пример #1
0
        static void Main(string[] args)
        {
            ITelefon tel1 = TelefonFactory.CreateTelefonObject(Marki.Apple);
            ITelefon tel2 = TelefonFactory.CreateTelefonObject(Marki.Samsung);

            tel1.zlozTelefon();
            tel2.zlozTelefon();

            Console.ReadKey();
        }