星期六, 十月 07, 2006

Design Principles : The Open-Closed Principle

OCP - The Open-Closed Principle

Software entities (classes , modules , functions , etc. ) should be open for extension , but closed for modification.

Abstraction is the key

Related design pattern
  • Strategry pattern
  • Template method

没有评论: