ShapeDriver Class

You will add code to the setup() method to create an array of various Shapes and call the draw() method which will display all of these Shapes each frame.


Note here that we are invoking the abstract draw method on each Shape, but Java is selecting the specific implementation to call from our Rectangle or Circle class at runtime.