Function New Constructor

HI All,

function new(string path = “some_name”);
super.new(path);
endfunction

function new(string name= “some_name”);
super.new(name);
endfunction

What are the difference between name and path based constructor?
Generally I use name based constructor, what could be the use case of path?

According to my view: path based constructor can be used in factory instance override where user can mention exact path of the component to be replaced. Is this correct ?

Thank You,

I do not remember any code in the UVM that has a path as the constructor’s first argument. You’ll have to show us where you’ve seen this.