class Facade { SubSystemOne one; SubSystemTwo two; SubSystemThree three; SubSystemFour four; public Facade() { one = new SubSystemOne(); two = new SubSystemTwo(); three = new SubSystemThree(); four = new SubSystemFour(); } public void MethodA() { Console.WriteLine("MethodA组合方法"); one.MethodOne(); two.MethodOne(); } public void MethodB() { Console.WriteLine("MethodB组合方法"); three.MethodOne(); four.MethodOne(); } }