Abstract Factory Design Pattern in C#(www.d80.co.uk)

submitted by dan_swaindan_swain(190) 9 months, 22 days ago

Abstract Factory design pattern example in C# for .Net developers.

1 comment |category: |Views: 36

tags: another

new Add a live kick counter to your blog >> liveImage

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:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 9 months, 20 days ago 0

Someone pointed out in the comments that his example does not use an abstract class as the base class, and asks if that makes this not an abstract factory.
The answer is that it is an abstract factory, as that is the name of the design pattern and has nothing to do with the abstract keyword in C#.
Composing an abstract factory should be done through interfaces as is shown, optionally, an abstract base class implementing those interfaces could also be created but is not required.

Reply

information Login or create an account to comment on this story