These are some Similarities between Classes and Structures :
- Structures and Classes both can have constructors,method,properties,fields,contants,events and their handlers.ect
- Structures and Classes both can implement Interfaces
- Structures and Classes both can have delegates
THESE ARE ONLY A FEW SIMILARITIES DOTNETSPIDER MEMBERS ARE REQUESTED TO ADD MORE TO THIS. ================================================================================ Regards Hefin Dsouza.
|
| Author: mahendrakiran 31 Oct 2008 | Member Level: Gold Points : 1 |
1)class is a collection of methods functions and properties enumerators and fields.
2)structure can be defined as a tool for handling a group of logically related data item.
The main difference is: 3)class is a referance type. 4)structure is a reference value type.
|