[Spring] getter, setter, 생성자로 알아보는 객체지향적인 코드에 대하여
·
Spring
https://giken.tistory.com/entry/Java-if%EB%AC%B8-%EC%A0%9C%EA%B1%B0%ED%95%98%EA%B8%B0 [Java] if문 제거하기너무 많은 if, else 는 읽기 어려운 코드가 된다 .. 이 때는 코드를 수정하기도 어렵고 코드를 디버깅할 때도 어려울 수 밖에. if 문이 많은 코드에서 어떻게 if 문을 제거할지 한번 생각해보자. publicgiken.tistory.com 위 포스팅의 코드와 이어서 진행됩니다. getterublic class Client { public int someMethod(CalculateCommand calculateCommand) { CalculateType calculateType = calculateCo..