Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now