public delegate void FullDelegate(string msg);
public static void Main()
FullDelegate del = ClassA.MethodA;
del("Hello Afternoon, The is classA invocation");
del("This is Jojoe, a C# developer");
del("I am moving to the top of my IT career so help me God");
FullDelegate Namy = new FullDelegate(ClassB.MethodB);
Namy("Hi there, I am a software developer");
Namy("I will make it big in IT");
FullDelegate Methody = new FullDelegate(ClassC.MethodC);
Methody("Hi Method C, I am the developer");
FullDelegate Meskana = new FullDelegate(ClassD.MethodD);
Meskana("This is awesome");
Meskana("Moving forward to the next level");
Meskana("God is on top of it");
Meskana("Exiting this month by God's grace");
public static void MethodA(string message)
Console.WriteLine(message);
public static void MethodB(string message)
Console.WriteLine(message);
public static void MethodC(string message)
Console.WriteLine(message);
public static void MethodD(string message)
Console.WriteLine(message);