COMPSCI 220 Programming Methodology

Week 04 Syllabus: Decorator, Singleton, Factory, Command

Overview

This week we will continue our exploration of object-oriented design patterns. We will look at the decorator pattern that will allow classes to be extended dynamically, the singleton pattern which produces a single unique instance of an object, the factory pattern that separates object creation from client code, and the command pattern that encapsulates algorithms.

Tasks

There are no additional tasks this week

Reading