C# Programming - Delegates - Discussion
Discussion Forum : Delegates - General Questions (Q.No. 1)
1.
Which of the following statements is incorrect about delegate?
Discussion:
21 comments Page 1 of 3.
Kuldip said:
6 years ago
We can also use the multi-cast delegates with one or more method.
Alazar said:
8 years ago
D can also be an answer! A delegate in C# is similar to a function pointer in C or C++.
Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked.
Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked.
Shailesh yadav said:
9 years ago
Delegates is referenced type. Its allow you to change the reference to a method at run time.
Vineet kumar said:
9 years ago
This option is incorrect as we have multicast delegates for the same.
Serega Polyakov said:
1 decade ago
The answer is E, because we can use multiple methods using one delegate.
Jilajeet said:
1 decade ago
We can call multiple method at time in delegate by using "+" operator in multicast. So I think last option is incorrect.
Shahbaz chaudhary said:
1 decade ago
But correct answer is show delegate can only one method called but everybody say delegate can be called more than one method at same time. So please give me correct answer i am confuse of this query and I don't know more about delegate.
Mahesh said:
1 decade ago
You can call multiple methods using "+" operator with delegate. :).
Pratik said:
1 decade ago
Multicast Delegate can call more than one method.
Kiran said:
1 decade ago
There are two types of Delegates.
1) Single Delegate.
2) MultiCast Delegate.
It supports These type of delegates.
1) Single Delegate.
2) MultiCast Delegate.
It supports These type of delegates.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers