Beispiel #1
0
        public void doJoinAndExit(string arg)
        {
            IClassRoomUser person = factory.createClassRoomUser(arg);

            person.Join();
            person.Exit();
        }
        public void doExit(string arg0, string arg1)
        {
            AbstractClassRoomUserFactory factory = new OrdinaryClassRoomUserFactory();

            if (arg0 == "International")
            {
                factory = new InternationalClassRoomUserFactory();
            }

            IClassRoomUser person = factory.createClassRoomUser(arg1);

            person.Exit();
        }