Suppose we have an Abstract factory that creates for us some products. We know that the abstract factory can provide us some specific subclasses of the product but we don't want to check the type (this is the main reason for this pattern). Now we need to create a specific view for each type of object, how can we do this without know the specific type? Should the same factory create the different views?
Aucun commentaire:
Enregistrer un commentaire