Factory Method パターン
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 · 日本語
Factory Method パターン(ファクトリメソッド・パターン)とは、GoF (Gang of Four; 四人組)によって定義されたデザインパターンの1つである。 Factory Method パターンは、他のクラスのコンストラクタをサブクラスで上書き可能な自分のメソッドに置き換えることで、アプリケーションに特化したオブジェクトの生成をサブクラスに追い出し、クラスの再利用性を高めることを目的とする。 Virtual Constructor パターンとも呼ばれる。
Abstract from DBpedia / Wikipedia · CC BY-SA