Type used in parameterized class using it as argument to new constructor

In reply to dave_59:

Hi,

I have same no. of arguments in create as new constructor but still I am getting elab error.
Am I missing something?

function new(string n=“class_new”, int const_d=4, int const_e=4, int T=4);

obj_new[str_name] = class_new::type_id::create(str_name, D, E, tmp_type);

-I-:
-I-:Error-[TMAFTC] Too many arguments to function/task call
-I-:“uvm_object_registry::create(str_name, D, E, tmp_type)”
-I-: The above function/task call is done with more arguments than needed.
-I-: