Real World Interfaces in C#(buddylindsey.com)
submitted by percent20(855) 4 years, 2 months ago
A basic example of how you can use Interfaces
1 comment |category: C# |Views: 128 Tweet
tags: C# another
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
posted by yesthatmcgurk(4063) 4 years, 2 months ago 0
Not quite real world, but a decent example of how to use interfaces to decouple your code and take advantage of polymorphism. A good example of why you would do this is for easing testing. You don't have to spin up dependent code to test your object; just use a mock that implements your interface and away you go.
Reply
All tags Your tags
Suggest a new category
dpeterson(1821)
pwhe23(1134)
rcash(540)
vijayst(524)
bsenoff(360)
bnaya(312)
isenthil(260)
winphonegeek(260)
Matt_TCF(253)
KMillerr(240)