现在的位置: 首页 > 综合 > 正文

GOLDEN RULE(s) of design pattern

2013年02月10日 ⁄ 综合 ⁄ 共 285字 ⁄ 字号 评论关闭

GOLDEN RULE(s) of design pattern

  1. Client should always call the abstraction (interface) and not the exact implementation.
  2. Future changes should not impact the existing system.
  3. Change always what is changing.
  4. Have loose coupling

    • Inheritance ( Very coupled )
    • Composition
    • Aggregation
    • Association
    • Dependency
    • Realization ( Least couple )

抱歉!评论已关闭.