What is Iterator Pattern? Provide a way to access the elements of the aggregate object sequentially without exposing its underlying representation. Aggregate object is an object that contains other objects for the purpose of grouping those objects as a unit.It is also called a container or a collection.Examples are linkedList,Hashtable,ArrayList etc. Motivation Aggregate object such [...]
Archive | August 6th, 2008
Abstract Factory Pattern
August 6, 2008
What is Abstract Factory Pattern? Provide an interface for creating families of related or dependent objects without specifying their concrete classes. Wikipedia says: A software design pattern, the Abstract Factory Pattern provides a way to encapsulate a group of individual factories that have a common theme. Intent: Define an interface for creating an object,but let [...]
Template Design Pattern
August 6, 2008
What is Template Design Pattern? An abstract class defines various methods and has one non-overridden method which calls the various methods. Wikipedia Says: A template method defines the program skeleton of an aligorithm.The aligorithm itself is made abstract,and the subclasses override the abstract methods to provide concrete behavior.First a class is created that provides the [...]






August 6, 2008
0 Comments