Solved

C# Interfaces - besides being used for multiple inheritance and design patterns, what are other uses of interfaces?

Posted on 2011-03-07
2
258 Views
Last Modified: 2012-05-11
C# Interfaces - besides being used for multiple inheritance and design patterns, what are other uses of interfaces? Any links or examples?
0
Comment
Question by:cbrune
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35060891
One primary use is to allow polymorphic behaviour, allowing objects of different types to behave in the same way. Interface polymorphism is basically the same as class polymorphism except that the details of the implementation are left to the class which exposes the interface.
0
 
LVL 4

Accepted Solution

by:
rd707 earned 500 total points
ID: 35062088
Interfaces are heavily used when implementing legacy code in the form of COM objects.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dynamics CRM Plugin Query TotalRecordCount returning -1 13 87
Input parameteres to DragOver 2 58
aspx ascx, c# 7 40
advancedDataGridView / cancel / filter / using / button 5 26
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question