Which of the following is the correct way to call the function MyFun() of the Sample class given below? class Sample { public int MyFun(int i) { Console.WriteLine("Welcome to IndiaBIX.com !" ); return 0; } }

Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.

Which of the following is the correct way to call the function MyFun() of the Sample class given below? class Sample { public int MyFun(int i) { Console.WriteLine("Welcome to IndiaBIX.com !" ); return 0; } } Answer: delegate int del(int i); del d; Sample s = new Sample(); d = new del(ref s.MyFun); d(10);