Uvm_config_db set and get method

In reply to dave_59:

Hi Dave,

Thank you for the inputs.
I have tried set_type_override_by_type(A::get_type(), B::get_type()), in my_test before calling super.build_phase(phase) but got compiler an error saying,

Error-[SV-EEM-SRE] Scope resolution error
test_pkg, “A::get_type”
Target for scope resolution operator does not exist. Token ‘A’
is not a class/package. Originating module ‘test_pkg’.
Check that class or package exists with referred token as the name.

And, As you said, other approaches also there, I would like to hear them also.

Thanks!!!