C# Programming - Delegates - Discussion
Discussion Forum : Delegates - General Questions (Q.No. 10)
10.
Which of the following are the correct ways to declare a delegate for calling the function func() defined in the sample class given below?
class Sample
{
public int func(int i, Single j)
{
/* Add code here. */
}
}
Discussion:
1 comments Page 1 of 1.
Arjun said:
1 decade ago
The Purpose of delegate object can be used in to code which can call the referenced method, without having to know at compile time which method will be invoked.
For that the signature of the delegate(including no. of parameters with data type to be matched).
For that the signature of the delegate(including no. of parameters with data type to be matched).
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers