Following are the similarities between classes and structures :-
• Both can have constructors, methods, properties, fields, constants,enumerations, events, and event handlers.
• Structures and classes can implement interface.
• Both of them can have constructors with and without parameter.
• Both can have delegates and events.
• Both can have constructors, methods, properties, fields, constants,enumerations, events, and event handlers.
• Structures and classes can implement interface.
• Both of them can have constructors with and without parameter.
• Both can have delegates and events.
No comments:
Post a Comment