SlideShare a Scribd company logo
Factory Design Pattern
 In software engineering, a design pattern is a
general repeatable solution to a commonly
occurring problem in software design. A design
pattern isn't a finished design that can be
transformed directly into code. It is a description
or template for how to solve a problem that can
be used in many different situations.
 In 1994, four authors Erich Gamma, Richard
Helm, Ralph Johnson and John Vlissides
published a book titled Design Patterns -
Elements of Reusable Object-Oriented
Software which initiated the concept of Design
Pattern in Software development.
 These authors are collectively known as Gang
of Four (GOF).
1 Creational Patterns
These design patterns provide a way to create objects while hiding
the creation logic, rather than instantiating objects directly using new
opreator. This gives program more flexibility in deciding which objects
need to be created for a given use case.
2 Structural Patterns
These design patterns concern class and object composition.
Concept of inheritance is used to compose interfaces and define
ways to compose objects to obtain new functionalities.
3 Behavioral Patterns
These design patterns are specifically concerned with communication
between objects.
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Creational
Factory Pattern
Abstract FactoryPattern
BuilderPattern
FactoryMethodPattern
PrototypePattern
SingletonPattern
Structural
BridgePattern
CompositePattern
DecoratorPattern
FacadePattern
FlyweightPattern
ProxyPattern
Behavioral
ChainOfResponsibilityPattern
CommandPattern
InterpreterPattern
IteratorPattern
MediatorPattern
MementoPattern
ObserverPattern
StatePattern
StrategyPattern
TemplateMethodPattern
VisitorPattern
 Factory pattern is one of most used design pattern
in Java. This type of design pattern comes under
creational pattern as this pattern provides one of
the best ways to create an object.
 Define an interface for creating an object, but let
subclasses decide which class to instantiate.
Factory Method lets a class defer instantiation to
subclasses.
 In Factory pattern, we create object without
exposing the creation logic to the client and refer to
newly created object using a common interface.
1.Get Invoice
2.Place Booking Goa
Wayanad
Shimla
1.Get Invoice
2.Place Booking Goa
Wayanad
Shimla
Coorg
Munnar
 1.Customer directly communicating Hotels
 2.In case of New Hotel ,have to share contact
details to Customers
1.Get Invoice
2.Place Booking Goa
Wayanad
Shimla
Coorg
Munnar
Marketing
Office
1.Get Invoice
2.Place Booking
Marketing
Office
Goa
Wayanad
Shimla
Coorg
Munnar
Customer
Marketing
Offices
Different
hotels/Resorts
Set of
rules/Procedure
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Factory Design Pattern
Q & A

More Related Content

PDF
Factory Design Pattern
Jyaasa Technologies
 
PPTX
Design Pattern - Factory Method Pattern
Mudasir Qazi
 
PPTX
Factory Method Pattern
Anjan Kumar Bollam
 
PDF
Factory method pattern (Virtual Constructor)
Sameer Rathoud
 
PPTX
Proxy Design Pattern
Anjan Kumar Bollam
 
PPT
Unit 2-Design Patterns.ppt
MsRAMYACSE
 
PPTX
Design pattern
Thibaut De Broca
 
PPTX
Design Patterns - Abstract Factory Pattern
Mudasir Qazi
 
Factory Design Pattern
Jyaasa Technologies
 
Design Pattern - Factory Method Pattern
Mudasir Qazi
 
Factory Method Pattern
Anjan Kumar Bollam
 
Factory method pattern (Virtual Constructor)
Sameer Rathoud
 
Proxy Design Pattern
Anjan Kumar Bollam
 
Unit 2-Design Patterns.ppt
MsRAMYACSE
 
Design pattern
Thibaut De Broca
 
Design Patterns - Abstract Factory Pattern
Mudasir Qazi
 

What's hot (20)

PPT
Introduction to design patterns
Amit Kabra
 
PPT
Design Patterns
Anuja Arosha
 
PDF
Builder Design Pattern (Generic Construction -Different Representation)
Sameer Rathoud
 
PPTX
Design Patterns - General Introduction
Asma CHERIF
 
PPTX
Android MVVM
David Estivariz Pierola
 
PPT
Flyweight pattern
Shakil Ahmed
 
PPT
Bridge Design Pattern
sahilrk911
 
PPTX
Angular introduction students
Christian John Felix
 
PDF
Java Design Patterns Tutorial | Edureka
Edureka!
 
PPTX
Design Pattern - Singleton Pattern
Mudasir Qazi
 
PPTX
Gof design patterns
Srikanth R Vaka
 
PPTX
Observer Software Design Pattern
Nirthika Rajendran
 
PDF
Design Patterns Presentation - Chetan Gole
Chetan Gole
 
PPTX
Introduction to HTML, CSS, and JavaScript for Web Development
Qurinom Solutions
 
PPTX
Factory Design Pattern
Kanushka Gayan
 
PPT
Prototype pattern
Shakil Ahmed
 
PPT
Factory Method Pattern
Juan Carlos Giraldo Cardozo
 
PPT
Factory and Abstract Factory
Jonathan Simon
 
PPTX
The Singleton Pattern Presentation
JAINIK PATEL
 
PPT
Singleton design pattern
11prasoon
 
Introduction to design patterns
Amit Kabra
 
Design Patterns
Anuja Arosha
 
Builder Design Pattern (Generic Construction -Different Representation)
Sameer Rathoud
 
Design Patterns - General Introduction
Asma CHERIF
 
Flyweight pattern
Shakil Ahmed
 
Bridge Design Pattern
sahilrk911
 
Angular introduction students
Christian John Felix
 
Java Design Patterns Tutorial | Edureka
Edureka!
 
Design Pattern - Singleton Pattern
Mudasir Qazi
 
Gof design patterns
Srikanth R Vaka
 
Observer Software Design Pattern
Nirthika Rajendran
 
Design Patterns Presentation - Chetan Gole
Chetan Gole
 
Introduction to HTML, CSS, and JavaScript for Web Development
Qurinom Solutions
 
Factory Design Pattern
Kanushka Gayan
 
Prototype pattern
Shakil Ahmed
 
Factory Method Pattern
Juan Carlos Giraldo Cardozo
 
Factory and Abstract Factory
Jonathan Simon
 
The Singleton Pattern Presentation
JAINIK PATEL
 
Singleton design pattern
11prasoon
 
Ad

Similar to Factory Design Pattern (20)

PPTX
Design pattern
Ramakrishna kapa
 
PPTX
Designpattern
Srikrishna k
 
PPTX
Software design and Architecture.pptx
SHAHZAIBABBAS13
 
PPT
Oops design pattern intro
anshu_atri
 
PPTX
Design patterns
Kolade Ibrahim Arowolo
 
PPTX
Design Pattern - Introduction
Mudasir Qazi
 
PPTX
Design pattern 1
Naga Muruga
 
PPT
Design pattern
Mallikarjuna G D
 
PDF
Design Patterns Java programming language.pdf
totallyrealmail420
 
PDF
Introduction to Design Patterns
Kasun Ranga Wijeweera
 
PPTX
Design pattern of software words computer .pptx
muslimpari2503
 
PPTX
design pattern is the computer scicence subject
vamsikrishna76598838
 
PPTX
DesignPattern-Overview.pptx
Mohit750936
 
PDF
Module 2 design patterns-2
Ankit Dubey
 
PPTX
Sofwear deasign and need of design pattern
chetankane
 
PPTX
Lecture-7.pptx software design and Arthitechure
MuhammadAbubakar114879
 
PDF
Why Design Patterns Are Important In Software Engineering
Protelo, Inc.
 
PDF
Gang of Four in Java
Mina Tafreshi
 
PDF
software engineering Design Patterns.pdf
mulugetaberihun3
 
PPTX
sample Pattern Design explaine .pptx
mbabaqi2020
 
Design pattern
Ramakrishna kapa
 
Designpattern
Srikrishna k
 
Software design and Architecture.pptx
SHAHZAIBABBAS13
 
Oops design pattern intro
anshu_atri
 
Design patterns
Kolade Ibrahim Arowolo
 
Design Pattern - Introduction
Mudasir Qazi
 
Design pattern 1
Naga Muruga
 
Design pattern
Mallikarjuna G D
 
Design Patterns Java programming language.pdf
totallyrealmail420
 
Introduction to Design Patterns
Kasun Ranga Wijeweera
 
Design pattern of software words computer .pptx
muslimpari2503
 
design pattern is the computer scicence subject
vamsikrishna76598838
 
DesignPattern-Overview.pptx
Mohit750936
 
Module 2 design patterns-2
Ankit Dubey
 
Sofwear deasign and need of design pattern
chetankane
 
Lecture-7.pptx software design and Arthitechure
MuhammadAbubakar114879
 
Why Design Patterns Are Important In Software Engineering
Protelo, Inc.
 
Gang of Four in Java
Mina Tafreshi
 
software engineering Design Patterns.pdf
mulugetaberihun3
 
sample Pattern Design explaine .pptx
mbabaqi2020
 
Ad

Recently uploaded (20)

PDF
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PDF
How to Seamlessly Integrate Salesforce Data Cloud with Marketing Cloud.pdf
NSIQINFOTECH
 
PPTX
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
Q-Advise
 
PPTX
EU POPs Limits & Digital Product Passports Compliance Strategy 2025.pptx
Certivo Inc
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PPTX
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PPTX
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PPTX
AIRLINE PRICE API | FLIGHT API COST |
philipnathen82
 
PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
RanuFajar1
 
PPTX
TestNG for Java Testing and Automation testing
ssuser0213cb
 
PPTX
Services offered by Dynamic Solutions in Pakistan
DaniyaalAdeemShibli1
 
PDF
Become an Agentblazer Champion Challenge
Dele Amefo
 
PPTX
AZ900_SLA_Pricing_2025_LondonIT (1).pptx
chumairabdullahph
 
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
How to Seamlessly Integrate Salesforce Data Cloud with Marketing Cloud.pdf
NSIQINFOTECH
 
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
Q-Advise
 
EU POPs Limits & Digital Product Passports Compliance Strategy 2025.pptx
Certivo Inc
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
AIRLINE PRICE API | FLIGHT API COST |
philipnathen82
 
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
Materi_Pemrograman_Komputer-Looping.pptx
RanuFajar1
 
TestNG for Java Testing and Automation testing
ssuser0213cb
 
Services offered by Dynamic Solutions in Pakistan
DaniyaalAdeemShibli1
 
Become an Agentblazer Champion Challenge
Dele Amefo
 
AZ900_SLA_Pricing_2025_LondonIT (1).pptx
chumairabdullahph
 

Factory Design Pattern