Skip to content

[5주차] 최윤정 item 40#29

Merged
023-dev merged 5 commits intoeffective-java-3e-study:mainfrom
yunjeooong:main
Feb 5, 2025
Merged

[5주차] 최윤정 item 40#29
023-dev merged 5 commits intoeffective-java-3e-study:mainfrom
yunjeooong:main

Conversation

@yunjeooong
Copy link
Copy Markdown
Contributor

@yunjeooong yunjeooong commented Jan 30, 2025

No description provided.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

혹시 @OverRide 애너테이션이 컴파일러에게 어떻게 정보 전달하고, 컴파일러가 이를 처리하는지 알 수 있을까요?
@OverRide 을 생략해도 되는 부분들이 있다고하는데, 있는 경우와 없는 경우의 차이가 궁금합니다.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

만약 재정의할 의도가 아니고 새로운 메서드를 만들고 싶은데 의도치 않게 상위 객체의 메서드 네이밍과 똑같을것 같다면
어떻게 구분하는게 좋을까요? 헷갈리지 않기 위해 새로운 메서드의 네이밍을 조금이라도 바꾸는게 좋을까요?

@023-dev 023-dev merged commit 383933d into effective-java-3e-study:main Feb 5, 2025
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.

4 participants