J
Julia
Hi,
I have an application composed from layers like the following
A
--B
---C
A is the top layer
C uses an Abstract Factory to Create Concrete classes
I wonder if A should create the concrete factory,pass it to B,and than B
will pass it to A
or maybe it is better to create a Concrete factory in B
what are the advantages in disadvantages in each approaches?
create the Concrete factory in the upper most layer
or in the a layer which is one level higher that the layer which uses the
factory?
Thanks
I have an application composed from layers like the following
A
--B
---C
A is the top layer
C uses an Abstract Factory to Create Concrete classes
I wonder if A should create the concrete factory,pass it to B,and than B
will pass it to A
or maybe it is better to create a Concrete factory in B
what are the advantages in disadvantages in each approaches?
create the Concrete factory in the upper most layer
or in the a layer which is one level higher that the layer which uses the
factory?
Thanks