S06 橋接模式 示例

示例類圖 橋接模式.png 示例代碼 繼承結構1的抽象層 public interface Account { Account openAccount(); void showAccountType(); } 繼承結構1的實現層 繼承結構1是可以無限擴展的; public class DepositAccount implements Account { @Override
相關文章
相關標籤/搜索