Sunday, 28 April 2013

What are similarities between Class and structure ? | C#.Net Interview Questions

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.

No comments: