IIRC the point of flyweights is when you have a boatload of instances of a class and having each instance carry around the entire state would take a huge amount of memory. The example given in the Gang Of Four book is an OO text editing widget in which each individual character is represented by a character object.
In reply to Re: Doubt about fly-weight objects.
by Fletch
in thread Doubt about fly-weight objects.
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |