Backbase interview question

What is the differences between class and struct?

Interview Answer

Anonymous

Apr 23, 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.