Then, define a ShapeFactory to create Shape instances of specific types. public interface Shape { void draw();. } public class Rectangle implements Shape {.
確定! 回上一頁