What Will Be The Correct Statement In The Following C Codep Pre #424
What will be the Correct statement in the following C# code?</p> <pre><code class="language-csharp" line="1"> interface a1 { void f1(); int f2(); } class a :a1 { void f1() { } int a1.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.
What will be the Correct statement in the following C# code?
interface a1 { void f1(); int f2(); } class a :a1 { void f1() { } int a1.f2() { } }
class a is an abstract class
A method table would not be created for class a
The definition of f1() in class a should be void a1.f1()
None of the mentioned