What will be the result of the following code execution?
 
using System; 

namespace TestCS { 
     class Program {
          public delegate void MethodDelegate(string param); 

        private void privateMethod(string str) {      
            Console.Write(str); 
        } 

        public void GetMeth(out MethodDelegate md) {  
            md = privateMethod; 
        } 

       static void Main(string[] args) { 
           MethodDelegate myMethod; 
           Program program = new Program();  
           program.GetMeth(out myMethod); 
           myMethod("Hello");  
           Console.Write("_world"); 
           Console.ReadKey(); 
        } 
    }
}
 
C#
C# Quiz
Learn C# Online

or Read more about C# Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback