中介模式适用于需求双发都不知道对方信息的交互情况。比方说房产中介,购房和买房方在交易前都不知道对方信息,只能通过中介进行沟通。
参与者接口类实现:
#pragma once
using namespace std;
#include <string>
class Mediator;
中介模式适用于需求双发都不知道对方信息的交互情况。比方说房产中介,购房和买房方在交易前都不知道对方信息,只能通过中介进行沟通。
参与者接口类实现:
#pragma once
using namespace std;
#include <string>
class Mediator;