1.3-Object-Georienteerd-Programmeren

Introducing the Shape superclass

We are going to reuse the created shape classes from last week.

Create one list of shapes in the Application class and run a for loop through the shapes. Print per object the type, print the outline, the content and draw the shape.

Note that this exercise requires the SaxionApp. Please download it here.

Note that we decided to treat the Square class in a specific manner. However, different solutions could be possible as well. Can you think of at least one more?

Examples

Example

Example

Example