class Program
{
public delegate void Say(string s);
public void Hello(string s)
{
Console.WriteLine("Hello " + s);
}
public void Goodbye(string s)
{
Console.WriteLine("Bye bye " + s);
}
static void Main(string[] args)
{
Program obj = new Program();
Say a = new Say(obj.Hello);
Say b = new Say(obj.Goodbye);
a("Johnson");
b("Johnson");
}
}