If i have 3 classes, lets say: Mainclass, ChildClass, OtherChild.
MainClass() { ChildClass cc = new ChildClass(); OtherChild oc = new OtherChild();
Create a constructor for OtherChild that takes an instance of ChildClass, or just the name property if that is all you need.
public class OtherChild { ChildClass _cc; public OtherChild(ChildClass cc) { this._cc = cc; } }