GOLDEN RULE(s) of design pattern

来源:互联网 发布:方维众筹系统源码1.7 编辑:程序博客网 时间:2024/04/28 10:52
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 )
原创粉丝点击