New course! Every coder should learn Generative AI!
Try a free lesson0
I think the new operator is just the comen way at object oriented languages
So yes you can do it with allocate but it is not comen as allocate was just a useful trick to do object similar tasks in not Objekt oriented languages