package factory; /** * @author * @version 1.0 * @created 26-10-2025 15:05:28 */ public abstract class Creator { public Creator(){ } public void finalize() throws Throwable { } /** * 工厂方法,由具体工厂类实? * @return 创建的产品实? */ public abstract Product factoryMethod(); }//end Creator