강의

멘토링

커뮤니티

Inflearn Community Q&A

ryool's profile image
ryool

asked

Learning Refactoring by Coding

Refactoring 14. Change parameters to query functions

basePrice

Written on

·

290

0

안녕하세요 5분 30초 정도에

private double discountedPrice

메소드를 만들 때 basePrice도 메서드의 지역변수로 같이 만들면 매개변수를 한 개 더 줄일 수 있을 것 같은데 basePrice는

public double finalPrice()

메서드에 냅두신 이유를 알 수 있을까요?

javaintellijrefactoring

Answer 1

1

whiteship님의 프로필 이미지
whiteship
Instructor

음.. 그렇네요. 아니요 딱히 이유는 없습니다. :)

ryool's profile image
ryool

asked

Ask a question