for classes with two constructors and factories with two Create methods: make sure the names of the arguments are different in both constructors.
the trick is to name the arguments differently if they don't already have a different signature.
as long as the names of the method match the names of the constructor, it should work and select the correct constructor.
(Abstract Factory pattern)
for classes with two constructors and factories with two Create methods: make sure the names of the arguments are different in both constructors.
the trick is to name the arguments differently if they don't already have a different signature.
as long as the names of the method match the names of the constructor, it should work and select the correct constructor.
(Abstract Factory pattern)