public class SubClass1 { public void doSomething(){ System.out.println("this is a method in SubClass1"); }}public class SubClass2 { public void doSomething(){ System.out.println("this is a method in SubClass2"); }}public class SubClass3 { public void doSomething(){ System.out.println("this is a method in SubClass3"); }}public class Facade { private SubClass1 class1 = new SubClass1(); private SubClass2 class2 = new SubClass2(); private SubClass3 class3 = new SubClass3(); public void doSomething(){ this.class1.doSomething(); this.class2.doSomething(); } public void doAnotherthing(){ this.class3.doSomething(); this.class2.doSomething(); }}public class Client { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Facade facede = new Facade(); facede.doSomething(); facede.doAnotherthing(); }}