What is Interface? Explain with an example.

Answer Posted / krishnaveni.k

An Interface is a reference type. In C# and java not
support the multiple inheritance so i am using interface
concept.A class can implement multiple interfaces and using
interface keyword.It contain only method declaretion. but
not implementaion

Is This Answer Correct ?    20 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are objects passed by reference in c#?

520


If dll and exe files are same it means you can deploy both the files in gac?

493


What is check/uncheck?

595


How can I make sure my c# classes will interoperate with other .net languages?

524


Does c# support try-catch-finally blocks?

474






What are extensions methods in c#?

466


What are the Types of assemblies that can be created in dotnet

656


How do you comment out code in c#?

459


what is main function of alternate teamplate of datalist?

1637


Is c# lazy thread safe?

483


How to sign an assembly with strong name?

577


What is virtual in c#?

478


What are cookies in c#?

540


What is difference between hashtable and dictionary in c#?

487


What is dao in c#?

488