How to override instance of class extended from uvm_transaction using "set_inst_override_by_type"?

In reply to chetan_s:

In reply to Chandra Bhushan Singh:
As class B is declared as uvm_object create method expects only one argument.
b1 = B::type_id::create(“b1”, this);
In the above line there might be a argument mismatch issue.
Correct me if i’m overlooking something.

see if you see any issue when you have below in a extended class of uvm_component
b1 = B::type_id::create(“b1”, this);
then try the same in an extended class of uvm_object.