Choose The Correct Way To Call Subroutine Fun Of The Sample #608
Choose the correct way to call subroutine fun() of the sample class?</p> <pre><code class="language-csharp" line="1"> class a { public void x(int p, double k) { Console.WriteLine("k : csharp!"); } } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Delegates, Generics and LINQ - Delegates in Detail - Quiz No.1.
Choose the correct way to call subroutine fun() of the sample class?
class a { public void x(int p, double k) { Console.WriteLine("k : csharp!"); } }
delegate void del(int i); x s = new x(); del d = new del(ref s.x); d(8, 2.2f);
delegate void del(int p, double k); del d; x s = new x(); d = new del(ref s.x); d(8, 2.2f);
x s = new x(); delegate void d = new del(ref x); d(8, 2.2f);
all of the mentioned