示例#1
0
文件: Class.cs 项目: zateus/OSBB
        void Main()
        {
            User         invoker  = new User(1, "F*g", 3, "User");
            Admin        receiver = new Admin(2, "Alex", 12);
            UsingCommand command  = new UsingCommand(receiver);

            invoker.SetCommand(command);
            invoker.Run();
        }