Following are the similarities between classes and structures:
- Classes and structures both can have methods, properties, fields, constants, enumerations.
- Both can have parameterless constructors and parameterized constructors.
- Both can contains delegates and events.
- Both can implement interface.
No comments:
Post a Comment