Home »

What is the difference between a Struct and a Class?

Question ListCategory: C#.NETWhat is the difference between a Struct and a Class?
jessica537 author asked 2 years ago
1 Answers
shah_kajal184 author answered 1 year ago

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

Please login or Register to Submit Answer