Prototype Design Pattern

Observer Design pattern

What is the Prototype Design Pattern The prototype design pattern is a method where a new instance of an object is obtained by asking a manager to return the clone of one. In the earlier tutorials we saw how abstract factory pattern can be used to create a family of objects and builder pattern can … Read more

Abstract Factory Pattern

Observer Design pattern

Abstract factory pattern is a creational pattern. It provides an interface using which a client can instantiate a group of related Objects. This tutorial explains the Abstract factory pattern using a Car manufacturing algorithm. Example We design a framework that can build cars. We build two types of cars, a Mazda and a Ferrari. The … Read more

Factory Method – Tutorial and Example

Observer Design pattern

What is Factory Method? Factory method is a creational pattern that helps in abstracting the process of object creation. What this means is that the class that uses the object is not necessarily the class that instantiates the object. In fact, the class that uses the object has absolutely no idea about the exact type … Read more