Following pseudocode sums up my question pretty well I think...
class Owner {
Bar b = new Bar();
dostuff(){...}
}
class Bar {
Bar() {
There are 3 possibilities :
1) making dostuff() static and call it like
Owner.dostuff()
2) Creating an instance of Owner inside the class Bar
class Bar {
Owner o;
public Owner() {
o = new Owner();
o.dostuff();
}
}
3) Inject an Owner instance through the constructor
class Bar {
public Owner(Owner o) {
o.dostuff();
}
}