Implement copy action
This commit is contained in:
@@ -48,4 +48,7 @@ public abstract class AbstractShape implements Shape {
|
||||
public String toString() {
|
||||
return String.format("x=%d, y=%d, width=%d, height=%d", bounds.x, bounds.y, bounds.width, bounds.height);
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract Shape clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user