Here, as I understand it, the three classes interact with each other based on the fourth (class B).
public abstract class A { public B bb; // constructor public A(B beb) { bb = beb; } } public class B { /*Класс с переменными и методами*/ } public class C extends A { //constructor public C(B beb){ super(beb); } } Below it is not clear when class C is invoked with reference to class B as a parameter.
public class D{ public B bb; public C cc; public void init(){ cc = new C(bb); } And what exactly happens in the whole code?
PS the program starts with the init () method