SlideShare a Scribd company logo
2
Most read
5
Most read
6
Most read
Abstract Factory Pattern Provide an interface for creating families of related or dependent objects without specifying their concrete classes
Design Strategies recommended by GoF Design to Interfaces  Favour composition over inheritance Find what varies and encapsulate it
Themes of Creational Patterns Encapsulate Knowledge about which concrete classes the system uses Hide how these classes are created and put together
Applicability A system independent of how products are created Independent families of products can be used Within a family, sibling products should be use together Reveal Interfaces of class library and hide implementation
Implementation Factory Method Prototype Builder
Abstract Factory using Factory Method
Consequences of Classic Abstract Factory   It isolates concrete classes Exchanging product families harder Consistency among products harder to enforce Supporting new kinds of products is difficult
Pluggable Factory John Vlissides  C++ Report,  February 1999
Consequences of Pluggable Factory   Class structure is simpler  The factory interface tends to be more complex Changing individual product types is easy. Exchanging product families harder Consistency among products harder to enforce
Implementation - 2 nd  Dimension Dedicated Creators Parameterized Creators
Extensible Factories Timothy R. Culp  C++ Report,  October 1999
Consequences of Extensible Factories Supporting new kinds of products is easier Products are returned with same Interface Less type safety Exchanging product families harder Consistency among products harder to enforce

More Related Content

PPTX
Factory Design Pattern
PPTX
Design Patterns - Abstract Factory Pattern
PPTX
Abstract Factory Design Pattern
PDF
Factory Design Pattern
PPT
Builder pattern
PDF
Factory method pattern (Virtual Constructor)
PPTX
Factory Method Pattern
PDF
Software Engineering - chp4- design patterns
Factory Design Pattern
Design Patterns - Abstract Factory Pattern
Abstract Factory Design Pattern
Factory Design Pattern
Builder pattern
Factory method pattern (Virtual Constructor)
Factory Method Pattern
Software Engineering - chp4- design patterns

What's hot (20)

PPTX
Abstract Factory Pattern (Example & Implementation in Java)
PDF
IBM Jazz Agile Collaborative Lifecycle Management 6.0.x What's new
PDF
Design patterns
PPTX
Test Coverage
PPTX
Facade Design Pattern
PPT
Prototype pattern
PPT
interaction norman model in Human Computer Interaction(HCI)
PPTX
Prototype design patterns
PPTX
Design pattern (Abstract Factory & Singleton)
PDF
Introduction to Design Pattern
PPTX
Gof design patterns
PPTX
Builder design pattern
PPTX
Let us understand design pattern
PPT
Unit 2-Design Patterns.ppt
PPT
Introduction to design patterns
PPTX
Design pattern-presentation
PPTX
Chaos engineering & Gameday on AWS
PPTX
Prototyping
PPTX
Design Patterns - General Introduction
PPTX
Unit iii-Architecture in the lifecycle
Abstract Factory Pattern (Example & Implementation in Java)
IBM Jazz Agile Collaborative Lifecycle Management 6.0.x What's new
Design patterns
Test Coverage
Facade Design Pattern
Prototype pattern
interaction norman model in Human Computer Interaction(HCI)
Prototype design patterns
Design pattern (Abstract Factory & Singleton)
Introduction to Design Pattern
Gof design patterns
Builder design pattern
Let us understand design pattern
Unit 2-Design Patterns.ppt
Introduction to design patterns
Design pattern-presentation
Chaos engineering & Gameday on AWS
Prototyping
Design Patterns - General Introduction
Unit iii-Architecture in the lifecycle
Ad

Viewers also liked (19)

PPT
Design patterns - Abstract Factory Pattern
PPT
Abstract Factory Design Pattern
PPT
Design patterns ppt
PPT
Design Patterns By Sisimon Soman
PPT
Command pattern
PPT
Ed 401 Student Motivation Project (Turkish)
PPT
Factory and Abstract Factory
PPTX
Factory Pattern
PPS
Factory Farming
PPT
SOLID Design Principles
PPTX
Gifford ssa-full presentation
PPT
Command Design Pattern
PPTX
Introducing JIRA AGILE
PPTX
PPT
Design Patterns
PDF
Six Sigma Executive Overview
PPT
Entity Relationship Diagram
PPTX
Directing ppt
PDF
Design Patterns - Factory Method & Abstract Factory
Design patterns - Abstract Factory Pattern
Abstract Factory Design Pattern
Design patterns ppt
Design Patterns By Sisimon Soman
Command pattern
Ed 401 Student Motivation Project (Turkish)
Factory and Abstract Factory
Factory Pattern
Factory Farming
SOLID Design Principles
Gifford ssa-full presentation
Command Design Pattern
Introducing JIRA AGILE
Design Patterns
Six Sigma Executive Overview
Entity Relationship Diagram
Directing ppt
Design Patterns - Factory Method & Abstract Factory
Ad

Similar to Abstract Factory Pattern (20)

PPTX
Code Like a Ninja Session 7 - Creational Design Patterns
PPTX
Creational Patterns
PPTX
Design Pattern - Factory Method Pattern
PPTX
Creational Design Patterns.pptx
PPTX
Design patterns - How much we understand and know ??
PPTX
PATTERNS02 - Creational Design Patterns
PPT
PPTX
CREATIONAL Pattern .pptx
PPTX
design patter related ppt and presentation
PPTX
Factory Pattern
DOCX
Abstract factory
PPTX
PPTX
Creational pattern 2
PPTX
Factory Method Pattern
PPTX
Creational pattern
PPT
Factory Method Design Pattern
PPT
Factory Method Pattern
PPT
Factory Method Pattern
PPT
Design Pattern For C# Part 1
PDF
03-Factory Method for design patterns.pdf
Code Like a Ninja Session 7 - Creational Design Patterns
Creational Patterns
Design Pattern - Factory Method Pattern
Creational Design Patterns.pptx
Design patterns - How much we understand and know ??
PATTERNS02 - Creational Design Patterns
CREATIONAL Pattern .pptx
design patter related ppt and presentation
Factory Pattern
Abstract factory
Creational pattern 2
Factory Method Pattern
Creational pattern
Factory Method Design Pattern
Factory Method Pattern
Factory Method Pattern
Design Pattern For C# Part 1
03-Factory Method for design patterns.pdf

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Machine learning based COVID-19 study performance prediction
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PDF
cuic standard and advanced reporting.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Spectroscopy.pptx food analysis technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Encapsulation theory and applications.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Building Integrated photovoltaic BIPV_UPV.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
MYSQL Presentation for SQL database connectivity
Machine learning based COVID-19 study performance prediction
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Empathic Computing: Creating Shared Understanding
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
cuic standard and advanced reporting.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Spectroscopy.pptx food analysis technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Agricultural_Statistics_at_a_Glance_2022_0.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation theory and applications.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton

Abstract Factory Pattern

  • 1. Abstract Factory Pattern Provide an interface for creating families of related or dependent objects without specifying their concrete classes
  • 2. Design Strategies recommended by GoF Design to Interfaces Favour composition over inheritance Find what varies and encapsulate it
  • 3. Themes of Creational Patterns Encapsulate Knowledge about which concrete classes the system uses Hide how these classes are created and put together
  • 4. Applicability A system independent of how products are created Independent families of products can be used Within a family, sibling products should be use together Reveal Interfaces of class library and hide implementation
  • 5. Implementation Factory Method Prototype Builder
  • 6. Abstract Factory using Factory Method
  • 7. Consequences of Classic Abstract Factory It isolates concrete classes Exchanging product families harder Consistency among products harder to enforce Supporting new kinds of products is difficult
  • 8. Pluggable Factory John Vlissides C++ Report, February 1999
  • 9. Consequences of Pluggable Factory Class structure is simpler The factory interface tends to be more complex Changing individual product types is easy. Exchanging product families harder Consistency among products harder to enforce
  • 10. Implementation - 2 nd Dimension Dedicated Creators Parameterized Creators
  • 11. Extensible Factories Timothy R. Culp C++ Report, October 1999
  • 12. Consequences of Extensible Factories Supporting new kinds of products is easier Products are returned with same Interface Less type safety Exchanging product families harder Consistency among products harder to enforce