Mid GoF 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.

More from Design Patterns in C#

All questions for this course