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. 

 

​

​

Screen Shot 2019-03-30 at 7.07.46 PM.png

SKILLS LEARNED...

Polymorphism

Abstract Class

Interface

VIEW CODE HERE...

© 2018 by Carine Koumriqian

bottom of page