デザインパターン/Factory Method
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[デザインパターン]]
* Factory Method [#p1909f06]
** 適応可能性 [#t5b060e9]
- クラスが、生成しなければならないオブジェクトのクラスを...
- サブクラス化により、生成するオブジェクトを特定化する場...
- クラスが責任をいくつかのサブクラスの中の1つに委譲すると...
** 構造 [#e1e67db2]
&ref(Factory Method.gif);
*** 構成要素 [#l034dfa2]
: Product クラス ( Document クラス) |
-- factory method が生成するオブジェクトのインタフェース...
: ConcreteProduct クラス ( MyDocument クラス) |
-- Product クラスのインタフェースを実装する。
: Creator クラス ( Application クラス) |
-- Product 型のオブジェクトを返す factory method を宣言す...
-- Product のオブジェクトを生成するために factory method ...
: ConcreteCreator クラス ( MyApplication クラス) |
-- ConcreteProduct クラスのインスタンスを返すように、fact...
** 目的 [#c6ec4166]
オブジェクトを生成するときのインタフェースだけを規定して...
** コメント [#f053e3ae]
##comment_kcaptcha
終了行:
[[デザインパターン]]
* Factory Method [#p1909f06]
** 適応可能性 [#t5b060e9]
- クラスが、生成しなければならないオブジェクトのクラスを...
- サブクラス化により、生成するオブジェクトを特定化する場...
- クラスが責任をいくつかのサブクラスの中の1つに委譲すると...
** 構造 [#e1e67db2]
&ref(Factory Method.gif);
*** 構成要素 [#l034dfa2]
: Product クラス ( Document クラス) |
-- factory method が生成するオブジェクトのインタフェース...
: ConcreteProduct クラス ( MyDocument クラス) |
-- Product クラスのインタフェースを実装する。
: Creator クラス ( Application クラス) |
-- Product 型のオブジェクトを返す factory method を宣言す...
-- Product のオブジェクトを生成するために factory method ...
: ConcreteCreator クラス ( MyApplication クラス) |
-- ConcreteProduct クラスのインスタンスを返すように、fact...
** 目的 [#c6ec4166]
オブジェクトを生成するときのインタフェースだけを規定して...
** コメント [#f053e3ae]
##comment_kcaptcha
ページ名:
SmartDoc