Proxy Pattern

In proxy pattern, a class represents functionality of another class. This type of design pattern comes under structural pattern. In proxy pattern, we create object having original object to interface…

Continue ReadingProxy Pattern

Visitor Pattern

When you have File class with all print(), email() with inherited classes to WordFile, PictireFile, PreadSheet, .... Your new requirement are adding compress method on each classes. This is simple…

Continue ReadingVisitor Pattern