I understand that the main code uses the factory to return an abstract pointer of the object desired, but it doesn't change the heritability of classes.Can you explain in which context does the factory pattern reduce coupling?
In which way does the factory pattern decouple classes dependency?
design patterns;object oriented design;factory method;abstract factory