WHAT IS THE DIFFERENCE BETWEEN A STRUCT AND A CLASS?

Pooja Malohtra

Total Post:36

Points:180
Posted by  Pooja Malohtra
OOPS 
 1707  View(s)
Ratings:
Rate this:
  1. Pooja Malohtra

    Post:36

    Points:180
    What is the difference between a Struct and a Class?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!