Pregunta de entrevista de Modular Mining Systems

What is the different between Struct and Class?

Respuesta de la entrevista

Anónimo

1 mar 2018

A structure is a value type so it is stored on the stack, but a class is a reference type and is stored on the heap.