Deviopath › Swift

Rectangle Methods

Medium · Structs

Methods on a struct use func inside the type. Write area and perimeter on Rect. runRect is already written.

Next: Mutating Scale