热门问题
时间线
聊天
视角

層 (物件導向設計)

来自维基百科,自由的百科全书

Remove ads

物件導向設計中的(layer)是一群和其他模組有類似耦合性類別[1]。層也可以說是一組可復用的軟體組件,可以在類似的環境下復用。

各層的模組會用狀的階級架構來規劃,各層模組之間的依賴關係會用連接來表示。各層之間的依賴關係可能是繼承[2]複合英語Object composition或聚合(aggregation)關係,不過也有可能是其他的關係。

分層是許多書籍中都會提到的架構模式,例如《Pattern-Oriented Software Architecture英語Pattern-Oriented Software Architecture》書中就有提到[3]

相關條目

參考資料

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.

Remove ads