Giter Club home page Giter Club logo

abstract_factory_pattern's Introduction

abstract_factory_pattern

Abstract Factory Pattern: Abstract Factory Pattern is a subset of creational design pattern. Creational design patterns are design patterns that basically deal with object creation mechanisms, trying to create objects in a manner that suites the situation. These design patterns are necessary so as to reduce design complexity especially when dealing with various forms of development. Abstract Factory Pattern in itself is a design pattern that allows you create closely related objects or families of objects without specifying their base concrete class. Abstract factory allows you to explicitly create interfaces for the distinct objects in the family of objects then allow those interface variants implement/follow a base interface. Then you declare the Abstract Factory which holds the creation methods for all the related objects in the family of objects. A good example will be an application that allows users with multiple ISP on their device easily recharge and buy data on a single application.

  1. A family of related products, say: Airtime bundles + Data bundles
  2. Several variants of this family. For example, products Airtime bundles + Data bundles are available for: MTN, GLO, AIRTEL. Abstract Factory Pattern will allow us create interfaces for Airtime bundles and Data bundles Then each of the variants can follow the created interfaces. For example, all Airtime Bundles variants can implement the Airtime Bundles interface, all Data bundle variants can implement the Data bundles interface.

Below is the structure of the application design with abstract factory pattern.

abstract_factory_pattern's People

Contributors

mishiray avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.