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

How much time will it take to learn unity?

477


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

1685


If you define a user defined data type by using the class keyword, is it a value type or reference type?

508


What is anonymous methods in c#?

558


What is the solution if you need to manipulate sets of items?

470






What is func delegate in c#?

511


How do I convert a string to an int in c#?

522


Can you inherit multiple abstract classes in c#?

499


What is an assembly in .net?

577


Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.

3804


Is string primitive?

499


What is console based application?

478


Difference between abstract classes and interfaces

513


Why do we use inheritance in c#?

488


What is lock in c#?

486