Both can have constructors, methods, properties , fields,constants , enumerations, events and event handlers.
=> Structure and class can implement interface.
=> Both of them can have constructor without parameter and with parameter.
=> Both can have delegates and events.
[class is a collection of methods functions and properties enumerators and fields. structure can be defined as a tool for handling a group of logically related data item. the main difference is class is a reference type. structure is a reference value type.]
=> Structure and class can implement interface.
=> Both of them can have constructor without parameter and with parameter.
=> Both can have delegates and events.
[class is a collection of methods functions and properties enumerators and fields. structure can be defined as a tool for handling a group of logically related data item. the main difference is class is a reference type. structure is a reference value type.]
No comments:
Post a Comment