# Design Patterns: Factory Method

DevFeed: [Design Patterns: Factory Method](<https://devfeed.tech/articles/design-patterns-factory-method-40674.md>)

Original publisher: [Read original article](<https://radek.io/posts/design-patterns-factory-method/>)

Published: 2011-07-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Radek Pazdera](<https://devfeed.tech/sources/radek-pazdera.md>)

Topics: [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Python](<https://devfeed.tech/topics/python.md>), [coding](<https://devfeed.tech/topics/coding.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code](<https://devfeed.tech/tags/code.md>), [design-patterns](<https://devfeed.tech/tags/design-patterns.md>), [examples](<https://devfeed.tech/tags/examples.md>), [python](<https://devfeed.tech/tags/python.md>), [software-design](<https://devfeed.tech/tags/software-design.md>)

## AI overview

This tutorial explains the Factory Method creational design pattern, including how it encapsulates object creation, can select subclasses at runtime, and may reuse existing objects. It provides examples in C++ and Python.

## Source excerpt

Software design patterns by example