...

/

Challenge: Devise a Shape System

Challenge: Devise a Shape System

Devise a shape system.

We'll cover the following...

Problem statement

This challenge is to test your basics for designing a class hierarchy. You have to create a shape system, that accepts two shapes for now: a Rectangle and a Square. Here are the technicalities:

  • Each shape’s object, when initialized, would be given the length of its sides. For example:
    • When initializing a Square object, pass a number to set the length of its sides.
...
svg viewer