User-submitted Design Patterns Projects

185
1525 reads
Adrian999's picture

Submitted by

Adrian999
visitor pattern
This example demonstrates Visitor Pattern in java. In this example Visitor Pattern Represents an operation to be performed on the elements of an object structure / Visitor lets you define a new opera
Run It Now!
187
1564 reads
Theunknownbone's picture

Submitted by

Theunknownbone
Template Method
This example demonstrates Template Method in java.Template Method define the skeleton of an algorithm in an operation, deferring some steps to subclasses / Template Method lets subclasses redefine cer
Run It Now!
177
1591 reads
Madman0101's picture

Submitted by

Madman0101
Strategy
This example demonstrates Strategy in java. this example Strategy Define a family of algorithms, encapsulate each one, and make them interchangeable.
Run It Now!
386
8372 reads
Madman0101's picture

Submitted by

Madman0101
Observer Pattern
This example demonstrates Observer Pattern in java. this example Observer Pattern Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notifi
Run It Now!
178
2237 reads
Theunknownbone's picture

Submitted by

Theunknownbone
Calculator driver
This example demonstrates Momento pattern in java. The intent of this pattern is to capture the internal state of an object without violating encapsulation and thus providing a mean for restoring the
Run It Now!
153
1520 reads
Madman0101's picture

Submitted by

Madman0101
Mediator Pattern
This example demonstrates Mediator Pattern in java.Mediator define an object that encapsulates how a set of objects interact.
Run It Now!
71
1832 reads
Rohan's picture

Submitted by

Rohan
Roman Numeral Converter
This example demonstrates Roman Numeral Converter in java.The classical example fot the interpreter pattern is the one of interpreting the roman numerals.
Run It Now!
271
2673 reads
Rohan's picture

Submitted by

Rohan
Chain of Responsibility
this example demonstrates Chain of Responsibility in java.It avoids attaching the sender of a request to its receiver, giving this way other objects the possibility of handling the request too. - The
Run It Now!
65
1054 reads
Rohan's picture

Submitted by

Rohan
Prototype
This example demonstrates prototype in java.prototype Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
Run It Now!
71
1059 reads
Praveen's picture

Submitted by

Praveen
Builder Pattern
This example demonstrates Builder Pattern in java. The Builder pattern defines an instance for creating an object but letting subclasses decide which class to instantiate and Allows a finer control o
Run It Now!