首页 > 代码库 > DesignPattern_Structural_Facade

DesignPattern_Structural_Facade

void Main(){    Facade facade = new Facade();    facade.Show();}class Facade{    ProductA pa = new ProductA();    ProductB pb = new ProductB();    public void Show(){        pa.ShowA();        pb.ShowB();    }}class ProductA{    public void ShowA(){}    }class ProductB{    public void ShowB(){}}

 

DesignPattern_Structural_Facade