Skip to content

Conversation

@haesa
Copy link
Contributor

@haesa haesa commented Oct 23, 2024

답안 작성

  • 첫 번째 인터페이스는 메서드에 구체적인 연료 이름에 드러나 있다. 즉 메서드 이름에 내구 데이터가 노출된 것이기 때문에 추상화 레벨이 낮아졌다고 할 수 있다. 따라서 가솔린 차에 대해서만 사용 가능하다는 제약이 존재한다.
  • 두 번째 인터페이스는 구체적인 연료 이름을 드러내지 않고 일반적인 이름을 사용해서 남은 연료양이 얼마인지 구하고 있다. 때문에 첫 번재 인터페이스보다 추상화 레벨이 높아서 더 다양한 상황에서 활용할 수 있다.

@haesa haesa self-assigned this Oct 23, 2024
Copy link
Member

@dpfls0922 dpfls0922 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

완벽한 답안!

@haesa haesa changed the title [REFACTOR] chapter 6-1 [CHORE] chapter 6-1 Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants