C# Programming - Interfaces - Discussion

Discussion :: Interfaces - General Questions (Q.No.5)


Which of the following statements is correct about Interfaces used in C#.NET?

[A]. All interfaces are derived from an Object class.
[B]. Interfaces can be inherited.
[C]. All interfaces are derived from an Object interface.
[D]. Interfaces can contain only method declaration.
[E]. Interfaces can contain static data and methods.

Answer: Option B


No answer description available for this question.

Vidya said: (May 2, 2013)  
What is the need of interface?

Naveen Kumar Awasthi said: (Jul 6, 2014)  
What it mean interface inherit from Class of another Interface?

Lalit said: (Jul 31, 2014)  
Why not A? all types are inherited from System.Object right?

Chenchaiah Mallu said: (Dec 11, 2014)  
Interface is not possible to direct instance.

Vikas Kumar said: (Apr 7, 2015)  
// We know that interface cannot be derived from object but,

interface xyz

public class Demo
public void main()
xyz x;

// From where we get this method.


Tripti said: (May 10, 2015)  
Please explain the answer.

Mukesh Nigam said: (Feb 22, 2016)  
Interface is never inherited, its always implemented in its derived type. Inheritance model is not followed by an interface.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.