I know that the new keyword is calling the class constructor but at which stage do we allocate memory for the class?
new
In my understanding it should correspon
Everything for object creation is hidden behind the newobj opcode (or initobj for value-types). As such, it is entirely an implementation detail how and where memory is allocated, and how that ties into other memory management structures.
newobj
initobj