Hierarchical referencing within hierarchy of class objects

In reply to cgales:

Are you saying that hierarchical referencing does not work from one class object instance to another?

I know that I can access ($display) the same class object instance in my example from the testbench.

Like in this line of the testbench

      $display("Class driver1, someint = %0d",env_inst.driver1_inst.someint);