I am getting this error when I amr unning this code.Please help
module tb;
class MemTrans;
logic [7:0] data_in;
logic [3:0] address;
function new(logic [7:0]data_in=0,logic [3:0]address=0);
this.data_in=data_in;
this.address=address;
endfunction
function void print();
$display("data=%d,address = %d",data_in,address);
endfunction
endclass
MemTrans m;
initial begin
m=new(.address(2));
m.print();
end
endmodule