In the class diagram of the design pattern Factory method I think there should be a realization between the abstract creator class and the interface. The factory method returns an object of the type of the interface but there isn't a realization line. In the following diagram you can see the class diagram generated by the plugin UML in Netbeans: Factory Method class diagram
Aucun commentaire:
Enregistrer un commentaire