Refactor for AB4

This commit is contained in:
2022-04-27 19:00:45 +02:00
parent 60ea5aa6f4
commit cf188f1b2d
10 changed files with 159 additions and 211 deletions

@ -1,10 +1,13 @@
import codedraw.CodeDraw;
// An object that can be drawn in a CodeDraw canvas.
//
/**
* An object that can be drawn in a CodeDraw canvas.
*/
public interface Drawable {
//draws the object into the canvas 'cd'
//Precondition: cd != null
/**
* draws the object into the canvas 'cd'
* Precondition: cd != null
*/
void draw(CodeDraw cd);
}