关于Java 设计模式 工厂模式 Factory
1、Shape.java
package com.ssm.cts.pattern.factory;
public interface Shape {
void draw();
}
2、Circle.java
package com.ssm.cts.pattern.factory;
public class Circle implements Shape {
@Override
public void draw() {
System.out.print