Skip to content
EntityQ637921· pop 31· linked from 117 articles

Factory Method パターン

Sign in to save

creational 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

Show 2 more facts
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

Connections

Categories