What are interfaces in c#?



What are interfaces in c#?..

Answer / Santosh Kumar Mishra

In C#, an interface is a reference type that contains a contract (a definition) of a set of methods, properties, and events. An interface defines a common set of functions that can be used by multiple classes. A class implementing the interface must provide an implementation for each member defined in the interface.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Can we have only “try” block without “catch” block in c#?

1 Answers  


What are the access modifiers in c#?

1 Answers  


What is Covariance and contravariance in C#?

1 Answers   HCL,


Hi all,I am the beginner. Please tell use of finally block.

6 Answers   IBM,


What is a string c#?

1 Answers  


Do we get an error while executing the “finally” block in c#?

1 Answers  


What are circular references? How garbage collection deals with circular references.

1 Answers  


Why we use delegates in c#?

1 Answers  


what is namespace?

6 Answers  


Which property of the textbox cannot be changed at runtime?

1 Answers  


Explain the constructor in c#.

1 Answers  


What is singleordefault c#?

1 Answers  


Categories