Is there a way to get the parent object which is aaaa in this case without passing it explictly to B?
class A {
B b = new B();
}
class B {
public void getParent(){
}
A aaaa = new A();
Is there a way to get the parent object which is aaaa in this case without passing it explictly to B?
class A {
B b = new B();
}
class B {
public void getParent(){
}
A aaaa = new A();