Delegate
Delegate is a special data type that hold the address or reference of a function.
There are two type of delegate.
1)single cast delegate.
2)multi cast delegate.
Single cast delegate.
If we are using delegate object to store single function, then we said that it is single cast delegate.
Multi cast delegate.
If we are using delegate object to store multiple function, then we easily said that it is multi delegate.
General syntax of delegate
#create delegate.Access specifiers delegate name of delegate.
E.g:-
Public delegate my del();
#procedure to create object of delegate and hold function into it.
My del obj1=new My del ();
#calling of function using delegate object.
Obj1();= fun 1();