We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
컬렉션을 getter를 통해 제공하는 경우, 컬렉션 내의 원소 변경에 대해 캡슐화를 보장할 수 없다.
어떤 경우를 선택하던, 코드 베이스 내에서 일관성을 지키도록 하자
The text was updated successfully, but these errors were encountered:
No branches or pull requests
컬렉션을 getter를 통해 제공하는 경우,
컬렉션 내의 원소 변경에 대해 캡슐화를 보장할 수 없다.
(컬렉션 게터가 아닌 중간 메서드를 하나 더 생성)
ex) A.collections.add(1) → A.addToCollections(1)
(쓰기 연산 시도 시, 예외 발생시키기)
어떤 경우를 선택하던, 코드 베이스 내에서 일관성을 지키도록 하자
The text was updated successfully, but these errors were encountered: