This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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