private void constructor() { Logics = new Logics.ANDGateLogics(); Graphics = new Graphics.ANDGateGraphics(); Graphics.parent = this; Logics.parent = this; }