Category Archives: Design Pattern

Facade Design Pattern

Facade pattern hides the complexities of the system and provide the interface to use that system. Here we are going to create a shape interface that will be provided to client for using the Shape Maker. Step-1 Create an interface Shape Output: Hi, this is circle Hi, this is rectangle Hi, this is square

Factory design pattern

We create objects without exposing the creation logic to the client and refer to newly created object using a common interface. In simple words if we have super and sub classes , and based on data provided we have to return the object of one of the sub classes , we use factory pattern. The Continue Reading…