jeudi 28 septembre 2017

What does "a class instantiates another" mean?

From Design Pattern by GoF:

Another useful thing to show is which classes instantiate which others. We use a dashed arrowheaded line to indicate this, since OMT doesn't support it. We call this the "creates" relationship. The arrow points to the class that's instantiated. In Figure B.lc, CreationTool creates LineShape objects.

enter image description here

What does "a class instantiates another" mean here?

Thanks.

Aucun commentaire:

Enregistrer un commentaire