User-submitted Design Patterns Projects

202
1965 reads
adissaf's picture

Submitted by

adissaf
visitor pattern(1.01)
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 operati

Enhancement Trail:  

visitor pattern(1.01)    visitor pattern





Run It Now!
60
2109 reads
Sharon's picture

Submitted by

Sharon
Decorator pattern
This example demonstrates Decorator Pattern in java.Decorator Pattern add additional responsibilities dynamically to an object.
Run It Now!
187
1949 reads
Sharon's picture

Submitted by

Sharon
Composite Pattern
This example demonstrates Composite Pattern in java. The intent of this pattern is to compose objects into tree structures to represent part-whole hierarchies.
Run It Now!
55
1590 reads
Sharon's picture

Submitted by

Sharon
Flyweight Pattern
This example demonstrates Flyweight Pattern War-game in java. The intent of this pattern is to use sharing to support a large number of objects that have part of their internal state in common where
Run It Now!
49
1744 reads
Sharon's picture

Submitted by

Sharon
Adapter Pattern
This example demonstrates Adaptor Pattern in java.Adaptor Pattern Convert the interface of a class into another interface clients expect.
Run It Now!
324
5585 reads
Sharon's picture

Submitted by

Sharon
Bridge Pattern
This example demonstrates Bridge Pattern in java.Bridge Pattern Compose objects into tree structures to represent part-whole hierarchies.
Run It Now!
80
1838 reads
Sharon's picture

Submitted by

Sharon
Proxy Pattern
This example demonstrates Proxy Pattern in java.Proxy Pattern provide a “Placeholder” for an object to control references to it.
Run It Now!
65
1303 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!
271
3117 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!
71
2043 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!