Question: Create a Delegate, subscribe three methods to it, and call it from the Main. 1) Delegate features: a. Void return, string parameter 2) Method details,
Create a Delegate, subscribe three methods to it, and call it from the Main.
1) Delegate features: a. Void return, string parameter
2) Method details, all method returns and parameters match the delegate:
a. greet()
i. Outputs Hello and the string parameter
b. smallTalk()
i. Outputs How are you? and the string parameter
c. goodBye()
i. Outputs See you soon! and the string parameter
3) In the Main:
a. Subscribe all three methods to the delegate
b. Call the delegate with your name as an argument
Please use C sharp Language to answer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
