Inout signal error in uvm interface

It is better to develop slave class as well and connect these signals. Responding to an interface signals for a particular functionality from top module is not a good approach.

PS: The is not related to UVM!