top of page
RECURSIVE SCREEN SAVERS
This was an assignment from Paul Cao's CSE 8B course in the fall of 2018. For this assignment, we had to create our own abstract class Shape that would dictate our shape subclasses. We were told to create classes for three shapes -- Circle, Square, and Triangle -- using a package called objectdraw. We were asked to use recursive methods to create special drawing methods for each shape. Circle has drawBullseye(), Square has drawGrid(), and Triangle has drawTriforce(). The final problem we had to solve was to create a screensaver that drew these shapes randomly across a canvas.
​
​

SKILLS LEARNED...
Polymorphism
Abstract Class
Interface
VIEW CODE HERE...
bottom of page