CS 1713 Introduction to Computer Science:
Comments on Project 4
This project was graded out of 20 points.
3 students got the extra credit for 5 extra points.
- Most people did well on this project.
- You were told that all atributes should be private.
- DrawableSquare needs its own toString.
- If you use arrays for drawing the a triangle, they should not be attributes.
Rule: the scope of an identifier should be as small as possible
- Each class that extends DrawableShape should inherit
x, y, color, filled, and scale from its DrawableShape.
- If you do a g1 = g.create() you need to do a g1.dispose().
- DrawableSquare does not need draw or getBoundingBox methods since these
are inherited.
- Don't need this.getX() or super.getX(), can just do getX().
- There is a difference between
(int)getScale()*width and (int)(getScale()*width).