Contents tagged with design-patterns
-
Principles of Object Oriented Design
DRAFT Some of the following are self-explanatory. Others require some explanation. Encapsulate what varies. Restrict outside access to the details of routines that might need to change with … more
-
Object-oriented basics: inheritance, polymorphism, encapsulation, and abstraction
Inheritance prototypal inheritance allows an object to base itself on another object class-based inheritance allows a class to base itself on another class both allow the child to access the parent' … more
-
The Factory Pattern(s)
Simple Factory Encapsulate object creation within a class. Factory Method Define a class that does operations on an object. Let sub-classes choose the object. Abstract Factory Encapsulate creation … more