Want a Free Job Posting?

Buy a job posting today and the second one is on us. For a limited time only. Act Now.

Interview Question

Interview Austin, TX

What's the difference between a class and struct in C#? In


Interview Answer

1 Answer


The difference between class and structure in C# is that you use structs to define value types (as opposed to reference types declared by classes). In C++, a struct is the same thing as a class with a default accessibility level of public.

Stack Overflow on Mar 12, 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.