vendredi 1 mai 2020

Flyweight Pattern in Java

I came across FlyWeight Pattern described in the link. In the example provided , I believe only 2 implementations of player objects will be created. Wouldn't the weapons variable be overridden each time a player object is created?

Aucun commentaire:

Enregistrer un commentaire