/**
* 實現部分的抽象接口
* Created by max on 2016/4/13.
*/publicinterfaceImplementor {/**
* 實現抽象部分的具體方法
*/publicvoidoperatoinImpl();
}
ConcreteImplementorA:實現部分的具體實現.完善實現部分中方法定義的具體邏輯.
/**
* 實現部分的具體實現一
* Created by max on 2016/4/13.
*/publicclassConcreteImplementorAimplementsImplementor{@OverridepublicvoidoperatoinImpl() {
//具體的實現
}
}
Client:客戶端調用
/**
* 客戶端調用
* Created by max on 2016/4/13.
*/publicclassClient {publicstaticvoidmain(String[] args){
//客戶端調用邏輯
}
}