Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chapter 13] 다중 상속 형식 문단에서 잘못 번역되어 있는 것 같습니다. #15

Open
BUYA-GH opened this issue Nov 23, 2022 · 0 comments

Comments

@BUYA-GH
Copy link
Contributor

BUYA-GH commented Nov 23, 2022

출처

p.421, 1번째 줄부터
여기서 ArrayList는 한 개의 클래스를 상속받고, 여섯 개의 인터페이스를 구현한다.
결과적으로 ArrayList는 AbstractList, List, RandomAccess, Cloneable, Serializable, Iterable, Colleciton의 서브형식이 된다.
따라서 디폴트 메서드를 사용하지 않아도 다중 상속을 활용할 수 있다.

질문

이 문단에서 결론이 이상하게 난 거 같아 질문글을 올립니다.

위의 설명 처럼 ArrayList는 상속과 구현에 따라 6개의 타입의 서브 형식이 됩니다.
그러나 이게 왜 디폴트 메서드를 사용하지 않아도 다중 상속을 활용할 수 있다 라는 결론으로 이어지는지,
그리고 디폴트 메서드를 사용하지 않는거랑 다중 상속을 활용할 수 있는 것이 무슨 관계가 있는지도 모르겠습니다.

그래서 제가 따로 원문을 찾아보았는데 의도와 다르게 번역된 것 같습니다.

Here, ArrayList is extending one class and directly implementing four interfaces.
As a result, an ArrayList is a direct subtype of seven types: AbstractList, List, RandomAccess, Cloneable, Serializable, Iterable, and Collection.
In a sense, you already have multiple inheritance of types.

마지막 문장을 해석하면 다음과 같을 것 같습니다.

그러므로 (ArrayList는) 이미 여러개의 타입을 상속 받고 있습니다.

다른 분들은 이 문단에 대해서 어떻게 생각하시나요?

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

No branches or pull requests

1 participant