Fortran 95 does not have inheritance (thank god), so there is no no
use
for "protected" (accessible for descendants).
I was under the impression that Fortran 95 has or can mimic inheritance. Or
perhaps I misunderstand the term inheritance.
I assumed that inheritance was a one way imparting of public entities
(moving away from objects towards classes). In other words if a module_1
USES a module_2 which USES another module_3 then module_1 can access public
entities in module_3 while the converse is not true.
But I suppose in Java that inheritance is a two way share? Therefore no
need for the Java 'Protected' Key word?
Colin.
|