look at this code:
I want everytime I instantiate Child1 or Child2 or any other class that extends Parent, that child class will always have an instantiated B. AFAIK, constructors are not inherited in java, so how do I do this without writting the same piece of code to specifically instantiate B in every child class? thanks