設計模式之美:Extension Object(擴展對象)

索引 意圖 結構 參與者 適用性 效果 相關模式 實現 實現方式(一):使用示例結構實現 Extension Object。 實現方式(二):使用泛型實現 IExtensibleObject<T> 接口。 意圖 預期對象的接口將在未來被擴展。通過額外的接口來定義擴展對象。 Anticipate that an object’s interface needs to be extended in t
相關文章
相關標籤/搜索