examples can't say j is a solar stars name we have the
abstract factory pattern and that's the creation of that
and the problem is that we need
depending on some configuration on either
hundred one product or not a product of one reversed representation
of a product another representation of part
of from object basically in software in each other
so we can do that this so i could just through
rights my constructor and a configuration
file very dead and it's not so where's the actual problem why
did an independent for that and then you have
to configure five and you have you construct and then you you
are whenever you need to decide where i want to have the red
but not approve button let me ask
the configuration file if it's red then iterate
and if the the look and then and some other position
there's text feared and then it's a completely
different view and yet it is a problem i mean it's kind of
you distribute this decision all over your code yes
i don't know this is better assessment of the demanding
and what does he want run of
i want to have it all completely different
ok so now i see that so we want to more or less
consolidated or the configuration things into
one class in this case in this is going to be our factory
and with respect to we can then create different products but
they more less all the same kind of product but
they have different attributes different behavior one and
so a bit basically we have the effort effect readers as we
need just some sort of second then we'll decide if we let our
products people buy fact we ate all by fec creepy and in the
end kind of you know that a lot of factories built
different things watching mix washing machines for and
as a kind of this famous company factory 'i which will
steam most terrific washing machines and then as the other
company factory p which also plans to build the most terrific
washing machines but then solute that's a little
difference here a little difference there are
basically a difference in the price second
sometimes also difference in in the labor they
put on it and sometimes called if they come west but they or
washing machine exactly but they're differently and so
depending if you kind of if the the tas defect-free
a would build a washing machine slightly different
than if you get the touched effect would be which also with
the washing machine but yet different and the thing is
here this is all implemented was playing all the things we
already know like planes our classes so we kept interfaces
we've got abstract classes with classes we've got associations
between this so we already know the authors
and in this case more let's see that's like factories more
or less kind of an interface false because we want to have
a concrete fact restrict relay in victory b
but we have it as an abstract factory here because we could
already implement some common behavior or at least a
constructor for certain product also in the abstract factory
so yeah therefore it the abstract factory
and also the patterns called the upsuck flickr so
they are so yeah and you will get kind of photo
full implementation of exactly this on
and
x code will be there on it