Sometimes the creator of the base class would like to take a particular member and grant access to derived classes but not the world in general. That’s what protected does. protected also gives package access—that is, other classes in the same package may access protected elements.
posted on 2006-10-30 14:17
R.Zeus 阅读(427)
评论(0) 编辑 收藏 所属分类:
J2SE