策略模式(Strategy Pattern)屬於設計模式中的行為模式(behavioral design ... 定義一個付款策略介面 PaymentStrategy ,裡面有個付款方法 pay() 。
確定! 回上一頁