Factory (object-oriented programming)

Factory (object-oriented programming)

In object-oriented programming, a factory is an object for creating other objects; formally, it is a function or method that returns objects of a varying prototype or class from some method call, which is assumed to be "new". More broadly, a subroutine that returns a "new" object may be referred to as a "factory", as in factory method or factory function. The factory pattern is the basis for a number of related software design patterns.

Comment
enIn object-oriented programming, a factory is an object for creating other objects; formally, it is a function or method that returns objects of a varying prototype or class from some method call, which is assumed to be "new". More broadly, a subroutine that returns a "new" object may be referred to as a "factory", as in factory method or factory function. The factory pattern is the basis for a number of related software design patterns.
Depiction
Factory Method pattern in LePUS3.png
Has abstract
enIn object-oriented programming, a factory is an object for creating other objects; formally, it is a function or method that returns objects of a varying prototype or class from some method call, which is assumed to be "new". More broadly, a subroutine that returns a "new" object may be referred to as a "factory", as in factory method or factory function. The factory pattern is the basis for a number of related software design patterns.
Hypernym
Function
Is primary topic of
Factory (object-oriented programming)
Label
enFactory (object-oriented programming)
Link from a Wikipage to an external page
shop.oreilly.com/product/9780596007126.do
Link from a Wikipage to another Wikipage
Abstract factory pattern
Abstract interface
Abstraction (computer science)
Builder pattern
Callable object
Category:Articles with example C Sharp code
Category:Articles with example Java code
Category:Articles with example PHP code
Category:Object-oriented programming
Class (computer programming)
Class (computer science)
Class-based programming
Class method
Cloning (programming)
Code refactoring
Complex number
Constructor (object-oriented programming)
Creational pattern
Data type
Declaration (computer science)
Design pattern (computer science)
Design pattern object library
Design Patterns
Design Patterns (book)
Dynamic memory allocation
Encapsulation (object-oriented programming)
Factory (object-oriented programming)
Factory method
Factory method pattern
Fake object
File:Factory Method pattern in LePUS3.png
Header file
Head First (book series)
Image file
Method (computer programming)
Method (computer science)
Method dispatch
Object (computer science)
Object creation
Object-oriented programming
Object pool
Parameter
Polymorphism (computer science)
Programming idiom
Prototype-based programming
Refactored
Reflection (computer science)
Single dispatch
Singleton (mathematics)
Singleton pattern
Software design pattern
Software framework
Subroutine
Subtype polymorphism
Test-driven development
Toolkit
Unit test
Virtual class
Virtual function
SameAs
4kfjJ
Fábrica (programação orientada a objetos)
Factory (lập trình hướng đối tượng)
Gyár programtervezési minta
m.015yq8
m.05rwbq
Objektų fabrikas
Q5620977
مصنع (برمجة كائنية التوجه)
Subject
Category:Articles with example C Sharp code
Category:Articles with example Java code
Category:Articles with example PHP code
Category:Object-oriented programming
Thumbnail
Factory Method pattern in LePUS3.png?width=300
WasDerivedFrom
Factory (object-oriented programming)?oldid=1122546556&ns=0
WikiPageInterLanguageLink
工厂方法
WikiPageLength
21458
Wikipage page ID
1732198
Wikipage revision ID
1122546556
WikiPageUsesTemplate
Template:Cite book
Template:Efn
Template:Main article
Template:Notelist
Template:Redirect
Template:Refbegin
Template:Refend
Template:Reflist
Template:Short description