Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8202881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:20:55+00:00 2026-06-07T07:20:55+00:00

Factory method is class design pattern. Abstract Factory uses many Factory methods. Why Abstract

  • 0

Factory method is class design pattern. Abstract Factory uses many Factory methods. Why Abstract Factory is object design pattern, not class design pattern? Abstract Factory defer instantiation to which object?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:20:57+00:00Added an answer on June 7, 2026 at 7:20 am

    Abstract Factory pattern defers creation of product objects to the ConcreteFactory subclass. Since a client is expecting Factory class (which is the parent of ConcreteFactory subclasses) as a method parameter; based on the instance of ConcreteFactory passed, corresponding product instance is created. So Abstract Factory creates product instances by calling factory methods on a ConcreteFactory instance passed at runtime. Hence this is object design pattern. Typically these Concrete factories are Singletons.

    Factory method happens at the class level however. A new ConcreteFactory class has to be created to instantiate a ConcreteProduct. This ConcreteFactory extends Factory class which has a create() method returning Product. ConcreteFactory overrides create() method defined in the Factory parent class.

    Aswering the comment:

    Yes Factory method is parameterized but in AbstractFactory you will be able to call methods on a ConcreteFactory passed thus enabling you to switch to a different ConcreteFactory at runtime. But in Factory since create() is part of the class, if you want to create concrete products you have to create ConcreteFactory which extends the parent Factory class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does the Factory Method pattern (not to be confused with the Factory or Abstract
I have read Factory Method pattern. I have a problem when design the latter
I am defining a static factory method with: @XmlType(factoryClass=DummyFactory.class, factoryMethod=createNew) public abstract MyClass() {
I'm trying to create a really simple Factory Method design pattern example in Java.
In the Factory Method Design pattern of GoF, I can see that there is
I have learnt the factory method design pattern, and at the same time, I
I was reading ActionScript 3.0 Abstract Factory Design Pattern: Multiple Products and Factories ,
I believe the factory method design pattern is appropriate for what I'm trying to
The standard factory Method design pattern talks of 4 classes. Creator,Product n their concrete
I want to get an object by a static factory method, such as Person

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.