---
title: "Discussion on \"Factory Method\" | Hashnode"
description: "Discussion on \"Factory Method\". In the Factory Design Pattern, a factory class takes input from the user and returns an object based on that input. This approach often requires numerous if, else if, and else statements; adding a new"
url: "https://hashnode.com/posts/factory-method/6ace79fee1e4f6fd5730a014"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Factory Method](https://devnishan.hashnode.dev/factory-method?utm_source=hashnode&utm_medium=feed)

In the Factory Design Pattern, a factory class takes input from the user and returns an object based on that input. This approach often requires numerous if, else if, and else statements; adding a new

Oct 13 · 2 min read · devnishan.hashnode.dev  
Read the article

## Written by

[Ata Alahy Nishan](https://hashnode.com/@nishan756)

@nishan756 · Basherpul , Demra , Dhaka

  
[View profile](https://hashnode.com/@nishan756)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
