Exercises
Create the following protocols to solve the problem explained in Chapter 1, Objects from the Real-World to the Playground:
AbstractShape
AbstractRegularPolygon
AbstractEllipse
AbstractRectangle
AbstractCircle
After you create the protocols, create classes that implement them based on the specifications explained in Chapter 1, Objects from the Real-World to the 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) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|