Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
What is Interface?
August 05, 2009
What is Interface? & how to use it in a Class or program?
Posted Date: August 05, 2009 Points: 5
An interface contains only the signatures of methods, delegates or events. The implementation of the methods is done in the class that implements the interface.
For Example please refer this link
Mark As Answer if this solve your problem
Posted Date: March 22, 2010 Points: 5
An interface looks like a class, but has no implementation. It contains definitions of events, indexers, methods and properties. An interface inherited by classes An interface inheritance defined with keyword "interface". In C# Interface Inheritance also known as multiple inheritances.
Mark As Answer
" if this post help you.
Manas Ranjan Das
Posted Date: December 07, 2011 Points: 20
Implementing an interface allows a class to become more formal about the behaviour and implementation. Interfaces form a contract between the class and the outside world this gives very good abstraction about the object to client. If your class claims to implement an interface, all methods defined by that interface must implement in your class before the class will successfully compile.
1. Provides flexibility in implementing the operations for the derived classes.
2. Avoid conflicts when more than one interface is derived in a class.
3. Multiple inheritances can be possible in case of interface
To post reply
Related Questions Related Questions
what really differs an abstract class from interface and vice versa
when can i go for abstract class and when interface
how to create a dynamic user interface?
How can you automatically generate interface for the remotable object in .NET with Microsoft tools
Abstact and Interface Class
What''s the difference between an interface and abstract class?
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend