Saturday 28 December 2013

Why we used Delegate?

A delegate can be seen as a placeholder for a/some method(s). It is function pointer.
By defining a delegate, you are saying to the user of your class "Please feel free to put any method that match this signature here and it will be called each time my delegate is called".
Why we used delegate? for ansnwer read article this.

No comments:

Post a Comment