Create the following protocols to solve the problem explained in Chapter 1, Objects from the Real World to Playground:
AbstractShape
AbstractRegularPolygon
AbstractEllipse
AbstractRectangle
AbstractCircle
After you create the protocols, create the classes that implement them based on the specifications explained in Chapter 1, Objects from the Real World to Playground.
The following table summarizes the list of protocols to which each of the classes you must create will conform:
Class name |
Conforms to the following protocol(s) |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|