I am new to design patterns and I have a scenario here. I am not sure as how to implement the pattern.
- We have multiple vendors Philips, Onida, etc.
- Each vendor (philips, onida, etc) may have different types of product i.e. Plasma or Normal TV.
I want specific product of each vendor using Abstract Factory Pattern.
My implementation so far:
public enum TvType
{
Samsung = 0, LG = 1, Philips = 2, Sony = 3
}
public enum Product
{
Plasma = 0, NormalTV = 1
}
Concrete class of each vendor that returns each product and also the interface that contains ProductInfo i.e. if Vendor is that then it must have this product.