Here's a tutorial I was reading:
However this doesn't seem a flyweight pattern because according to wikipedia "A flyweight is an object that minimizes memory use by sharing as much data as possible with other similar objects". In other words, I cannot see an object with intrinsic and extrinsic data. Here I can only see a factory with some sort of caching system.
Can someone demonstrate why this is or is not a flyweight pattern?
Aucun commentaire:
Enregistrer un commentaire