adplus-dvertising
frame-decoration

Question

Correct statement about c#.NET code snippet given below is?
interface a1
{
    void f1();
    int f2();
}
class a :a1
{
    void f1()
    {
    }
    int a1.f2()
    {
    }
}

a.

class a is an abstract class

b.

A method table would not be created for class a

c.

The definition of f1() in class a should be void a1.f1()

d.

None of the mentioned

Posted under C# programming

Answer: (c).The definition of f1() in class a should be void a1.f1()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Correct statement about c#.NET code snippet given below is?