Triabolical_ t1_ixg5ier wrote
Reply to comment by anotherlolwut in ELI5: What is the difference between classes, constructors, structs and methods in C# by Sure-Ad-5053
>A Class is like a Struct, but it can perform functions. The functions are part of the data stored in that object. Classes have done other features that Structs don't, but basically, think of it as Struct with functions.
Structs in C# have functions.
The big difference is that structs have value semantics and classes have reference semantics (almost always with very rare exceptions)...
Viewing a single comment thread. View all comments