Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is this about Java ? In C# that protected would be accessible from derived class but only trough the derived type, and what you described would be internal, ie. allow access from any class in the assembly. Terminology could be applied to C++ but it doesn't have syntax for interfaces and abstract classes.

Altough I like that answer you gave and this sort of "detailed" questions (I don't think the article had that in mind tough), primarily because if you can answer it I would guess that you know Java enough to be usefull without needing any furhter questions. Someone reading trough a textbook might read that but won't remember it unless he knows the implications, and if he knows that he knows Java. And if you don't know it that cool too, there are other questions like this that demonstrate actual expirience with the language/tools vs. shallow textbook trivia.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: