Пример #1
0
        static void Main(string[] args)
        {
            ObjectStructure o = new ObjectStructure();

            o.Attach(new Man());
            o.Attach(new Woman());

            Success v1 = new Success();

            o.Display(v1);

            Failing v2 = new Failing();

            o.Display(v2);

            Amativeness v3 = new Amativeness();

            o.Display(v3);

            Marriage v4 = new Marriage();

            o.Display(v4);

            Console.Read();
        }
        private static void Main(string[] args)
        {
            ObjectStructure o = new ObjectStructure();

            o.Attack(new Man());
            o.Attack(new Woman());

            Success v1 = new Success();

            o.Display(v1);
            Failing v2 = new Failing();

            o.Display(v2);
            Amativeness v3 = new Amativeness();

            o.Display(v3);
        }
Пример #3
0
        static void Main(string[] args)
        {
            ObjectStructure o = new ObjectStructure();
            o.Attach(new Man());
            o.Attach(new Woman());

            Success v1 = new Success();
            o.Display(v1);

            Failing v2 = new Failing();
            o.Display(v2);

            Amativeness v3 = new Amativeness();
            o.Display(v3);

            Marriage v4 = new Marriage();
            o.Display(v4);

            Console.Read();
        }
Пример #4
0
        static void Main(string[] args)
        {
            ObjectStructure os = new ObjectStructure();
            os.Attach(new Man());
            os.Attach(new Woman());

            Success v1 = new Success();
            os.Display(v1);
        }