Circle Class
Create the Circle class which is derived from Shape with the following properties:
- Create an integer or float instance variable for a radius
- Create a constructor which takes four arguments:
- y coordinate
- x coordinate
- radius
- canvas (PApplet)
- Invoke the super constructor with x and y coordinates and the canvas as parameters.
- Create an accessor for radius
-
Create a draw method which overrides Shape's draw method.
You should call the ellipse() method defined in PApplet.
Use Shape's canvas accessor to get a handle on Shape's PApplet.
See the Processing API for more details on using ellipse().