Link to home
Start Free TrialLog in
Avatar of cbrune
cbrune

asked on

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

C# Interfaces - besides being used for multiple inheritance and design patterns, what are other uses of interfaces? Any links or examples?
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
ASKER CERTIFIED SOLUTION
Avatar of rd707
rd707
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial