Slide 6
Slide 6 text
OCP(Open-Closed Principle: 개방-폐쇄 원칙)
Software entities (classes, modules, functions, etc.) should be open for
extension, but closed for modification
- Meyer, Bertrand (1988). Object-Oriented Software Construction
● 소프트웨어 엔티티는 확장에는 열려 있어야 하고, 수정에는 닫혀 있어야 한다.
● 새로운 기능이나 동작을 추가할 때 기존 코드를 수정하지 않고 확장할 수 있어야
한다.