Interface in uvm_test

In reply to dave_59:

Hi Dave I have one more doubt, any another way to use the class handle inside the interface?

For example
class config;
bit [9:0] q_value;
endclass

interface

task cal;
if(--------)// I NEED TO USE THE CONFIG Q_VALUE INSIDE THE IF STATEMENT
endtask

endinterface

Is there any way to access the value inside the interface?