ASP Programming Question:

Whats the difference between Struct and class in C#?

Tweet Share WhatsApp

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 PDF Read All 194 ASP Programming Questions
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?