Given the delegate declaration: delegate void GreetingDelegate(string s);What do you know about any method that is represented by this delegate? In general, what can you tell about a method if you know it is encapsulated by a particular delegate?
What will be an ideal response?
The GreetingDelegate shown can encapsulate any method as long as it has a void return type and a single string parameter. Any delegate can encapsulate any method that has the same return type and parameter list as the delegate. If you declare the delegate and then write a method with the same return type and parameter list, you can assign an instance of the delegate to represent it.
You might also like to view...
What is the output of the following program fragment?
cout << static_cast
In the Insert Picture dialog box, ________ can be typed to facilitate the search for a particular type of image
Fill in the blank(s) with correct word
is the shortcut key symbol for ____.
A. command B. option C. control D. eject
The SATA drive technology utilizes a serial data path.
Answer the following statement true (T) or false (F)