In reply to Chandra Bhushan Singh:
Other way to come over this problem , while crating uvm object use following syntax.
b1 = B::type_id::create(“b1”, this);
Your code will work fine with this syntax also.
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.