In the "Factory Pattern", why is the ShapeFactory class used?
public class ShapeFactory {
public static Shape getShape(ShapeType type, float param1, float param2) {
// Implementation details...
}
}
In the "Factory Pattern", why is the ShapeFactory class used?
public class ShapeFactory {
public static Shape getShape(ShapeType type, float param1, float param2) {
// Implementation details...
}
}