Simple we can say delegate is a variable which holds methods instead of members. We are writing an application which will display either āGood Morningā or āGood Nightā according to value entered. (0-12:- āGood Morningā otherwise āGood nightā)
delegate string ReturnString(); // Declare this in top
Comments