Factory method pattern

In object-oriented programming, the factory method pattern is a design pattern that uses factory methods to deal with the problem of creating objects without having to specify their exact classes. Rather than by calling a constructor, this is accomplished by invoking a factory method to create an object.

Source: Wikipedia — Factory method pattern (CC BY-SA 4.0)

Factory method pattern

In object-oriented programming, the factory method pattern is a design pattern that uses factory methods to deal with the problem of creating objects without having to specify their exact classes. Rather than by calling a constructor, this is accomplished by invoking a factory method to create an object.

Source: Wikipedia "Factory method pattern" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy