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?
Attribute
Delegate
Namespace
Interface
Encapsulation
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Chowdaiah said:   1 decade ago
Delegate objectname();

Invoke the delegate for before creating an delegate.

Delegate objectname = new delegatename(methodname);

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.
(1)

Post your comments here:

Your comments will be displayed after verification.