Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.lang.java > #3

Protected class member

Newsgroups alt.comp.lang.java
From JiiPee <no@notvalid.com>
Subject Protected class member
Message-ID <1S4Uy.92545$3s1.23526@fx37.am4> (permalink)
Organization virginmedia.com
Date 2016-04-27 16:25 +0100

Show all headers | View raw


In C++ protected members can only be called from inherited classes. In 
java they can also be called from package-classes, even if not inherited.

My questions is, that if I want only the inherited classes to see the 
protected members what is the right way to do it? Is it that I have to 
put them into a separate package? I have to create a new package and do 
it there? Is this the normal way to do this?

Back to alt.comp.lang.java | Previous | NextNext in thread | Find similar


Thread

Protected class member JiiPee <no@notvalid.com> - 2016-04-27 16:25 +0100
  Re: Protected class member cemaldon@gmail.com - 2019-07-31 09:09 -0700
    Re: Protected class member Graeme Geldenhuys <graemeg@example.net> - 2019-08-14 18:51 +0100
  Re: Protected class member cemaldon@gmail.com - 2019-07-31 09:15 -0700
  Re: Protected class member cemaldon@gmail.com - 2019-07-31 09:16 -0700

csiph-web