Quote (Minkomonster @ Apr 26 2014 01:46am)
Eh, correct me if I am wrong but the only difference between struct and class is all struct members are implicitly public, while class are private. And the assignment specifically asks the student to delete the dynamic array. Destructors are C++ only, right?
hm for some reason i thought classes lived on the heap as a reference type but structs lived on the stack as a value type. or is that just a C# thing?
/edit: i vaguely recall that in C++ you can choose what goes on the stack vs heap? so then it would just be a C# thing.
This post was edited by carteblanche on Apr 26 2014 08:33am