Home > DeveloperSection > Interviews > What is the difference between a Struct and a Class?

Posted on    April-23-2011 3:28 AM

 OOPS OOPS 
Ratings:
 1 Answer(s)
  1521  View(s)
Rate this:

Pooja Malohtra
Pooja Malohtra

Total Post:36

Points:180
Posted on    April-23-2011 12:00 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick