Solved

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

Posted on 2011-03-07
2
259 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

Technology Partners: 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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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