Is it possible to access an object from a member object without passing and storing a reference? In the example below, could a given chair object get access to the house obj
First off, is this an example of a real problem or just an example for learning purposes?
It's definitely not Chair's responsibility to check the house location. If you want to find all chairs in Miami you have to traverse the whole tree or give it a reference.