Description: 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.
To Search:
File list (Check if you may need any files):
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