When should I use a Struct?

I know that   Struct are a value type while classes are a reference type
    Struct do not have destructors while classes do have destructors
    Struct can not have implementation inheritance but a class can
    Struct can have interface inheritance

could you give an example also? thank you.
iscivanomarAsked:
Who is Participating?
 
mayank_joshiCommented:
This tutorial presents the syntax and usage of structs with examples. It also covers the important differences between classes and structs

http://msdn.microsoft.com/en-us/library/aa288471%28v=vs.71%29.aspx
0
 
mayank_joshiCommented:
another useful article with examples :-

http://www.jaggersoft.com/pubs/StructsVsClasses.htm
0
 
iscivanomarAuthor Commented:
Thank you, it is more clear now.
have a good day.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.