CSE 110 Lecture Notes - Lecture 14: Adapter Pattern
Document Summary
To strive for, but there may be exceptions) Factory method pattern class to instantiate. fmp lets a class defer instantiation to subclasses. High level components should not depend on low level components! 1. no variable should hold a reference to a concrete class. 2. no class should derive from a concrete class. 3. no method should override an implemented method of any of its base classes. Synchronizing can decrease performance by a factor of 100! Tight coupling (all dependent on these variables!) Having many global variables and methods that all change these global variables.