How exactly the new() function is allocating memory in systemverilog

In reply to sbellock:

Can you give me the sample(need not to be the exact) implementation code for the new() function,to understand better what’s happening inside.

Thank you,
Regards
Sumanth