fabrique (patron de conception)
Sign in to savecreational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created
Wikidata facts
- Subclass of
- creational pattern
Show 3 more facts
- described by source
- Design Patterns
- Stack Exchange tag
- stackoverflow.com/tags/factory-method
- Commons gallery
- Factory method
Sources (1)
via Wikidata · CC0
Article · Français
La fabrique (factory method) est un patron de conception créationnel utilisé en programmation orientée objet. Elle permet d'instancier des objets dont le type est dérivé d'un type abstrait. La classe exacte de l'objet n'est donc pas connue par l'appelant. Plusieurs fabriques peuvent être regroupées en une fabrique abstraite permettant d'instancier des objets dérivant de plusieurs types abstraits différents. Les fabriques étant en général uniques dans un programme, on utilise souvent le patron de conception singleton pour les implémenter.
Abstract from DBpedia / Wikipedia · CC BY-SA