ASP Programming Question:

Download Job Interview Questions and Answers PDF

Whats the difference between Struct and class in C#?

ASP Programming Interview Question
ASP Programming Interview Question

Answer:

Structs cannot be inherited.
Structs are passed by value, not by reference.
Struct is stored on the stack, not the heap.
Explain encapsulation.
The implementation is hidden, the interface is exposed.

Download ASP Programming Interview Questions And Answers PDF

Previous QuestionNext Question
Whats the access level of the visibility type internal?What data type should you use if you want an 8-bit value thats signed?