Difference between framework and design pattern

Could anybody, please explain the difference between framework and design pattern? -Sowjanya

Merrill Higginson

Ranch Hand

Posts: 4864

posted 10 years ago

A framework generally refers to a concrete set of classes and other assets that constitute a starting point from which to build an application or to perform a specific function. A framework offers services as well as suggestions for creating your own classes that tie into those services.

A design pattern is an abstract idea. It is a suggestion for writing your classes in a certain way to accomplish a certain task. A design pattern generally does not offer any concrete classes or other assets. Think of it as a blueprint for solving a specific programming problem.