Interviews14 answers
Which of the following statements is correct about an interface used in C#.NET? A. If a class implements an interface partially, then it should be an abstract class. B. A class cannot implement an interface partially. C. An interface can contain static methods. D. An interface can contain static data. E. Multiple interface inheritance is not allowed.
14 Answers
B. A class cannot implement an interface partially. The modifier 'static' is not valid in interface so there is no possibility for option D
Tekesh BisenPosted May 7, 2017, 9:16 AM EDT
A. eg:
public interface myinterface
{
void a();
void b();
}
public abstract class myclass : myinterface
{
public void a()
{
///do something
}
public abstract void b(); // keep this abstract and then implement it in child class
}
Riyas RapposolPosted Apr 11, 2017, 9:17 PM EDT
Option B, Option D are correct
Shubham PrakashPosted Jan 26, 2017, 11:20 PM EST
Option A, Option D are correct
Shubham PrakashPosted Jan 26, 2017, 11:19 PM EST
A
Vineet KumarPosted Jan 12, 2017, 8:49 PM EST
B
Keshav ChauhanPosted Dec 26, 2016, 8:28 AM EST
B
Vineet KumarPosted Dec 7, 2016, 8:14 AM EST
B is correct, because the interface become abstract class only when all its methods is declared are abstract.
Bineesh ViswanathPosted Jun 23, 2016, 9:22 PM EDT
Abstract Class
Santosh KumarPosted May 31, 2016, 5:21 AM EDT
B
neeraj deshwalPosted May 31, 2016, 4:10 AM EDT
B. A class cannot implement an interface partially.
NarenPosted May 25, 2016, 4:47 AM EDT
B.. class can not implement an interface partially.
Shivanand BastePosted Mar 22, 2016, 10:56 PM EDT
Option A, Option D are correct
Anil Kumar MurmuPosted Jan 13, 2016, 1:26 AM EST
Ans:A
Rajesh SinghPosted Dec 24, 2015, 6:41 AM EST








