in Dot Net by (1.4k points)

What is the difference between a Struct and a Class?

1 Answer

0 votes
by (1.4k points)

Structs are value-type variables and classes are reference types. Structs stored on the stack, causes additional overhead but faster retrieval. Structs cannot be inherited.

Related questions

+1 vote
asked Jun 25, 2019 in Dot Net by Venkatshastri (1.4k points)