[ java ] in KIDS 글 쓴 이(By): crystal (엠알투) 날 짜 (Date): 1998년02월10일(화) 03시39분31초 ROK 제 목(Title): Re: [q] private protected.. 개인적으로 한번도 써본적이 없어서 없어진줄도 몰랐는데.. JDK1.1 부터 빼버렸네요. private protected 를 없에게 된 동기는: private protected was not added to the language because it violated a nesting relationship that was valuable. You can list the existing accesses in an ordered relationship from least to most accessible: private package protected public You cannot fit "private protected" into that ordered list. This ordering capability keeps certain parts of the language simple, and is therefore valuable. The assumption is that packages contain "related" code, and so encapsulation within a package is less critical. If you throw code randomly into a package you will end up with unusual exposures (although with inner classes this can be controlled better), but if it hurts, don't do that. Private protected was removed because of the ambiguity involved. (이상 JDC 에서 퍼왔습니다 - JDC article #2072) |