Real World Interfaces in C#(buddylindsey.com)
submitted by percent20(855) 4 years, 6 months ago
A basic example of how you can use Interfaces
1 comment |category: C# |Views: 138 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, 6 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(1273)
Telerik(409)
fdub(381)
amit.jain(273)
BlackWasp(259)
RobertTheGrey(259)
jalpesh(252)
KodefuGuru(227)
KMillerr(226)
vijayst(223)