Category: ooad

State Design Pattern Implementation

In this article we are going to deal with a design pattern that is very similar to strategy pattern.¬†Here we are going to learn state design pattern implementation. State Design Pattern Implementation: State pattern tries to implement state transitions in…

Composite Design Pattern Implementation

This article will continue with series of structural design patterns and concentrate on composite design pattern implementation. Composite Design Pattern Implementation: Composite pattern allows you to compose objects into tree structure to represent part whole hierarchies. It lets clients treat…

Bridge Design Pattern Implementation

We are going to see yet another design pattern in this article. Bridge design pattern implementation is used with runtime binding of implementation is needed. Bridge Design Pattern Implementation: It is defined as Bridge pattern decouples an abstraction from its…

Proxy Design Pattern Implementation

Continuing our series of design pattern, we will learn yet another i.e. proxy design pattern implementation in this article. It is a structural design pattern which acts as a placeholder for other objects.   Proxy Design Pattern Implementation: Gang of…

Visitor Design Pattern Implementation

In this article we are going to understand yet another design pattern i.e. visitor design pattern implementation. Visitor Design Pattern Implementation: Gang of Four defines visitor pattern as, Represent an operation to be performed on elements of an object structure.…

composition example

In previous post we have seen an example of aggregation. Here we will deal with another association type i.e. composition. The article will provide a daily life simple composition example to understand the concept better Composition Example Two classes have…

aggregation example

We know about the association relationship in java, but there are forms of association. we all have read about aggregation relationship and composition relationship in java. This article will deal with aggregation example. Aggregation¬†Example: By definition we know that two…

Liskov Substitution Principle

Continuing our series about design principles, we will look into another important design principle and understand using violation of liskov substitution principle. Liskov Substitution Principle: Liskov Substitution Principle states that Subtypes must be substitutable for their base classes. At first…