What Will Be The Output Of The Following C Codep Pre Langcsharp #432
What will be the output of the following C# code?</p> <pre><code class="language-csharp" line="1"> interface i1 { void f1(); } interface i2 :i1 { void f2(); } public class maths :i2 { public void f2() { Console.WriteLine("fun2"); } public void f1() { Console.WriteLine("fun1"); } } class Program { static Void Main() { maths m = new maths(); m.f1(); m.f2(); } } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Object Oriented Concepts - Interfaces Implementation - Quiz No.1.