Category: Design Pattern

Factory Method Design Pattern in Visual Basic .NET

Read more

Abstract Factory Method Design Pattern in Visual Basic .NET

Read more

Proxy Design Pattern in Visual Basic .NET

Definition Provide a surrogate or placeholder for another object to control access to it. You can understand the Proxy Design Pattern in following You have two objects called ObjectA and ObjectB. So ObjectA needs to communicate with other ObjectB. How are you going to do this? You can simple make a reference to ObjectB can […]

Read more

Memento Design Pattern in Visual Basic .NET

Definition Without violating encapsulation, capture and externalize an object’s internal state so that the object can be restored to this state later. This pattern is used to save the internal state of an object when it changesĀ  state of over the time. You can use save points when you save the state so that you […]

Read more

Interpreter Design Pattern in Visual Basic .NET

Definition Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language. This is about creating interpreter for a language which can be new language or existing one. To use the Interpreter Design Pattern effectively one should have good knowledge about computer language […]

Read more

Command Design Pattern in Visual Basic .NET

Read more

Chain of Responsibility Pattern in Visual Basic .NET

Read more

Visitor Design Pattern in Visual Basic .NET

Read more

Template Design Pattern in Visual Basic .NET

Definition Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm’s structure. I will explain this design pattern with an example later This is the UML diagram for Template Design Pattern Participant AbstractClass This abstract class define […]

Read more

Strategy Design Pattern in Visual Basic .NET

Definition Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from the clients that use it In this pattern you have several algorithms to do a task. Depending on your requirement you can select the algorithm dynamically. You can implement each algorithm in separate class This […]

Read more