Showing posts with label Design Patterns. Show all posts
Showing posts with label Design Patterns. Show all posts
Thursday, February 4, 2010
Factory Method Pattern (Creational)
AIM: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory method lets classes defer (postpone) instantiate to subclasses.
Thursday, January 21, 2010
Singleton Pattern (Creational)
AIM:
Restrict instantiation of a class to one object and provide a global point of access to the object.
Class Diagram:
Wednesday, January 20, 2010
Understanding Design Patterns
What is Design Pattern and why it is so important?
Before explaining what design pattern is, we will look into why we need to learn design patterns. As a software or application developer, we do write a lot of code every day to deliver the software/application. Most of the people write the code in different ways; someone writes all logic into one single file and someone separates that code into multiple files.
Before explaining what design pattern is, we will look into why we need to learn design patterns. As a software or application developer, we do write a lot of code every day to deliver the software/application. Most of the people write the code in different ways; someone writes all logic into one single file and someone separates that code into multiple files.
Subscribe to:
Posts (Atom)