JiiPee
2016-04-27 15:25:51 UTC
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?
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?