본문 바로가기
Study/Software Engineering

Design principle 을 지키는 Refactoring 방법

by SeulKom 2009. 8. 31.



                     [그림1] 상속구조를 재정비하는 과정






             [그림2] 객체 구조를 SRP, LSP, OCP를 준수하도록 바꾸는 과정



SRP : Single Responsibility Principle
LSP : Liskov Substitution Principle
OCP : Open-Closed Principle