Category Archives: C++

Composite Design Pattern Explained

By | September 9, 2015

This is tutorial is a C++ implementation of the Composite design pattern. This is one of the easier design pattern out there. Sometimes confused with “Prefer composition over Inheritance“. Yes, few people do get confused. In interview. There is not much to talk about. So I will as usual, jump immediately into the “WHY” followed… Read More »

Bridge Design Pattern Explained

By | September 1, 2015

This tutorial is a C++ implementation of the Bridge design pattern. This is one of the most confusing design pattern. This and the other patterns, namely Adapter, Proxy and Decorator design pattern have too much in common to confuse a simple soul. As usual I will first discuss the WHY and then later on the… Read More »

Adapter Design Pattern Explained

By | August 22, 2015

In this tutorial we will implement Adapter design pattern using c++. And I will use the much denounced multiple inheritance in c++ too. Adapter design pattern is one of the easier design patterns. As usual, we will first discuss the “WHY” and then the “HOW”.

Proxy Design Pattern Explained

By | August 17, 2015

This tutorial is a C++ implementation of Proxy design pattern. In this brief example we will discuss the Proxy pattern, the need for it as well as how to go about implementing it. As usual, I will first start with the WHY and then the HOW of the Proxy design pattern.

Abstract Factory Pattern Explained

By | July 13, 2015

This is going to be a simple C++ based tutorial on Abstract Factory Pattern. The sample used easy to understand and relate to. This pattern is closely related to Factory Method Pattern. I have a small post dedicated to it. I will encourage you to read it first before taking up this one. For a… Read More »