^ 잘못된 코드의 예시


You must program defensively with the assumption that clients of your class will do their best to destroy its invariants. This may actually be true if someone tries to break the security of your system, but more likely your class will have to cope with unexpected behavior resulting from honest mistakes on the part of the programmer using your API. Either way, it is worth taking the time to write classes that are robust in the face of ill-behaved clients.

 - Effective Java

^ 보충설명 자료


캡슐화에 관한 문제였음


내가 뭔 얘기를 하려는지 대충이나마 알고 비아냥거린거였으면 상관 없는데

자기 주제파악도 못하고 주둥이나 놀려대는 놈이라 좋은소리 못하겠다