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.

Source: Wikipedia — Factory (object-oriented programming) (CC BY-SA 4.0)

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.

This neuron ends here.

Source: Wikipedia "Factory (object-oriented programming)" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy