Mid
From PDF
GoF Patterns
Gang of Four Patterns
Flyweight Objects (Character):?
- The Character class holds the intrinsic state (the character symbol), which
is shared across all instances. This makes it an ideal candidate for the
Flyweight Pattern because multiple characters (e.g., 'H', 'e', 'l') may appear
many times in the same text, but they only need one Character object for
the symbol.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png