Tag Archives: flyweight

Mozart and the Flyweight Design Pattern

One of the few (mostly) true stories presented in Peter Schaffer‘s play and movie Amadeus was when Emperor Joseph II told Mozart that his latest work (Der Entführung aus dem Serail ) had “too many notes.” How many notes is too many? Mozart had a great answer. What would a Note class look like? Here [...]

Posted in Design Patterns | Also tagged | Leave a comment