Object Oriented Programming (OOP) Design Patterns are defined as reusable and tested solution for common object oriented design problems. They allowed programs to be maintainable, reusable, more flexible and loosely coupled. Generally these OOP design patterns are divided into 3 categories as Creational , Structural , and Behavioral patterns. Respective to those 3 categories, there are 23 object oriented design patterns as shown in the given flow diagram. Out of the above diagram we have pointed out 5 commonly used design patterns. · Singleton This limits creating a class only to one object. This is achieved through making the constructor as private to that class. This facilitates a global access to an object by ensuring that the object has only one instance. · Factory Method Normally objects are created witho...
Comments
Post a Comment