package cn.com.pep.model.simpleFactory; /** * @Title: CheesePizza * @Description: * @author wwh * @date 2022-8-22 14:22:53 */ public class CheesePizza extends Pizza{ @Override public void prepare() { System.err.println("prepare CheesePizza ..."); } @Override public void bake() { System.err.println("bake CheesePizza ..."); } @Override public void cut() { System.err.println("cut CheesePizza ..."); } @Override public void box() { System.err.println("box CheesePizza ..."); } }
package cn.com.pep.model.simpleFactory;/** * @Title: CheesePizza * @Description: * @author wwh * @date 2022-8-22 14:22:53 */public class CheesePizza extends Pizza{
@Overridepublic void prepare() {System.err.println("prepare CheesePizza ...");}
@Overridepublic void bake() {System.err.println("bake CheesePizza ...");}
@Overridepublic void cut() {System.err.println("cut CheesePizza ...");}
@Overridepublic void box() {System.err.println("box CheesePizza ...");}
} 标签:...,err,void,CheesePizza,System,模式,工厂,println,设计模式 From: https://www.cnblogs.com/wha6239/p/16627795.html