面向對象設計原則之迪米特法則

迪米特法則(Law of Demeter,LoD) 同稱 最少知識原則(Low knowledge Principle,LKP) 好,按照習慣,從老外的話開始介紹 Each unit should have only limited knowledge about other units: only units 「closely」 related to the current unit. 概念1:
相關文章
相關標籤/搜索