Sollicitatievraag bij Backbase

What is the differences between class and struct?

Antwoord op sollicitatievraag

Anoniem

23 apr 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.