C# (Sharp) Programming Language Question:

Download Job Interview Questions and Answers PDF

What is the difference between a Struct and a Class?

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

Answer:

Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval. Another difference is that structs cannot inherit.

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
How do you specify a custom attribute for the entire assembly (rather than for a class)?What is the implicit name of the parameter that gets passed into the set method/property of a class?