Pergunta de entrevista da empresa Backbase

What is the differences between class and struct?

Resposta da entrevista

Sigiloso

23 de abr. de 2022

In Class all the reference types are allocated on heap memory, in structs all the value types are allocated on stack memory. Classes are of reference types, structs are of value types.