How does struct differ from class in C#?

  1. Structs cannot be inherited.

  2. Structs are passed by value, not by reference.

  3. Struct is stored on the stack, not the heap.

  4. structs can be inherited


Correct Option: A

Find more quizzes: