Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hi,
Please let me know why do we need interface with simple example...as
i really didn"t get when to use it....how does it makes difference..
Posted 10-Mar-11 18:44pm
siva455793
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Interfaces in C# (For Beginners)[^]article from CP might help you.
  Permalink  
Comments
pradeep455 at 11-Mar-11 1:05am
   
thanks for your answer but the article specifies how to use interface but not when to use and how does it makes difference...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

See this discussion: When we use abstract and when we use interface...?[^].
 
Interesting article on the how interfaces a valuable: Using C# Interfaces to Make Applications Resilient to Changes[^].
 
—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Multiple inheritance is not supported in C#. but it can be achieved using interfaces...
  Permalink  
Comments
CHill60 at 2-Jul-14 9:41am
   
Hm ... not sure I would accept that statement without details of how it could be achieved. However, the post is over 3 years old and already adequately answered. This adds nothing to the answers already posted.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 450
1 OriginalGriff 393
2 Sergey Alexandrovich Kryukov 229
3 CPallini 189
4 CHill60 180
0 OriginalGriff 6,092
1 Sergey Alexandrovich Kryukov 5,022
2 Maciej Los 3,269
3 Peter Leow 3,164
4 DamithSL 2,490


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 2 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100