What will be the result of a 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(); 
        } 
    }
}
 

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes