Which Of The Following Is The Correct Way To Call The #610
Which of the following is the correct way to call the subroutine function abc() of the given class in the following C# code?</p> <pre><code class="language-csharp" line="1"> class csharp { void abc() { console.writeline("A:Just do it!"); } } </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.
Which of the following is the correct way to call the subroutine function abc() of the given class in the following C# code?
class csharp { void abc() { console.writeline("A:Just do it!"); } }
csharp c = new csharp(); delegate void d = new del(ref abc); d();
delegate void del(); del d; csharp s = new csharp(); d = new del(ref s.abc); d();
csharp s = new csharp(); delegate void del = new delegate(ref abc); del();
None of the mentioned