Skip to main content

CSE 331: Design Patterns 1

A design pattern is a solution to a design problem that comes up again and again, written down so that others can reuse it. The lecture starts from a mistake in the guestbook that javac accepted, and the fix that made javac refuse it: the static factory method. It then covers the Factory Method and the singleton, with a look at interning.