文件名称:Factory-Method
介绍说明--下载内容均来自于网络,请自行研究使用
GOF--工厂模式的实例,java代码.在工厂方法模式中,工厂父类负责定义创建产品对象的公共接口,而工厂子类则负责生成具体的产品对象,这样做的目的是将产品类的实例化操作延迟到工厂子类中完成,即通过工厂子类来确定究竟应该实例化哪一个具体产品类。
-GOF--Factory Method Example,java code.
Factory Method Pattern: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
-GOF--Factory Method Example,java code.
Factory Method Pattern: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Chapter 05 Factory Method
.........................\sample01
.........................\........\Client.class
.........................\........\Client.java
.........................\........\config.xml
.........................\........\HaierTV.class
.........................\........\HaierTV.java
.........................\........\HaierTVFactory.class
.........................\........\HaierTVFactory.java
.........................\........\HisenseTV.class
.........................\........\HisenseTV.java
.........................\........\HisenseTVFactory.class
.........................\........\HisenseTVFactory.java
.........................\........\TV.class
.........................\........\TV.java
.........................\........\TVFactory.class
.........................\........\TVFactory.java
.........................\........\XMLUtil.class
.........................\........\XMLUtil.java