Last active
January 15, 2018 09:47
-
-
Save agoiabel/615e44ec0695d4d20499925dda9dd55d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum AppleDevice { | |
case iPad | |
case iPhone | |
case AppleTv | |
case AppleWatch | |
func description() -> String { | |
return "This is an apple device" | |
} | |
} | |
AppleDevice.iPad.description() //will return "This is an apple device" | |
AppleDevice.iPhone.description() //will return "This is an apple device" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment