C# Programming - Delegates - Discussion
Discussion Forum : Delegates - General Questions (Q.No. 11)
11.
Suppose on pushing a button an object is to be notified, but it is not known until runtime which object should be notified. Which of the following programming constructs should be used to implement this idea?
Discussion:
2 comments Page 1 of 1.
Mahesh.P said:
1 decade ago
-->Delegates are used to call the methods statically and dynamically.
-->In dynamic run time decides which method need to be called using delegates.
-->In dynamic run time decides which method need to be called using delegates.
(1)
Chowdaiah said:
1 decade ago
Delegate objectname();
Invoke the delegate for before creating an delegate.
Delegate objectname = new delegatename(methodname);
Invoke the delegate for before creating an delegate.
Delegate objectname = new delegatename(methodname);
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers