Restricting parent class members to its immediate child class only – stackoverflow.com

Suppose I have four classes in java with given hierarchy. class A {} class B extends A {} class C extends B {} class D extends C {} As per my understanding all the accessible fields of class A ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Restricting parent class members to its immediate child class only – stackoverflow.com"