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

What is clr namespace?

659


These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.

2730


What is var c#?

665


What is the difference between writeline and write in c#?

603


What is the difference between hashtable and dictionary?

716


Is an interface a type c#?

713


How do I simulate optional parameters to com calls?

717


Define a jagged array in c#?

647


Why do we write system in c#?

657


What is task parallel library?

694


What is the difference between and xml documentation tag?

724


What is the difference between selection and projection?

633


Value Type and Reference Type Data type in C#?

698


What is c sharp used for?

661


Explain what are the steps for creating clr trigger?

641