Пример #1
0
        static void Main(string[] args)
        {
            IFactory factory = new StudentFactory();
            LeiFeng  leiFeng = factory.CreateLeiFeng();

            leiFeng.Wash();
            leiFeng.Sweep();
            leiFeng.Cook();
        }