Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 391 Bytes

File metadata and controls

9 lines (7 loc) · 391 Bytes

Extensions exercises

First Challenge

You made the Department type conform to the CustomStringConvertible protocol. Refactor the type to move CustomStringConvertible conformance into an extension.

Second Challenge

Give the Int type a nested enum with cases even and odd. Also give Int a property of that type to correctly report whether an integer is even or odd.