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!
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!
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!
It works similar to normal calculator , but has some restrictions , all angles shud be entered in radians , after each arithmetic operation press = symbol , Improved version will be updated soon :) -
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!
This example demonstrates Strategy in java.
this example Strategy Define a family of algorithms, encapsulate each one, and make them interchangeable. Run It Now!