What is Interface? Explain with an example.

Answer Posted / senthil

An Interface is a reference type and it contains only
abstract members. the interface contains only declaration
for its members. Any implementation must be placed in class
that realizes them. Interface's members can be Events,
Methods, Properties and Indexers. But

Is This Answer Correct ?    44 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between singleordefault and firstordefault?

484


Why do we need abstraction in c#?

494


What are the different types of classes in c#?

500


Describe the process of “exception handling implementation” in c#?

518


Is dictionary reference type c#?

478






What is assembly c#?

477


Name the method of servicebase class?

542


What is constants in c#?

425


Is c# different than c++?

518


Differentiate between sqlclient oledb and providers?

502


What is overloading with example?

501


explain Garbage collector’s functionality on unmanaged code

518


Can you use all access modifiers for all types?

541


Are objects passed by reference in c#?

523


Why abstract class is not instantiated in c#?

525