Created
January 21, 2019 15:43
-
-
Save tsh-code/37a50d39a9ad2ad1dbfcc81e707e3f45 to your computer and use it in GitHub Desktop.
PO-WalkingRunning.swift
This file contains 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
protocol Walking { | |
func walk() | |
} | |
extension Walking { | |
func walk() { | |
print("🚶🏻♀️") | |
} | |
} | |
protocol Running { | |
func run() | |
} | |
extension Running { | |
func run() { | |
print("🏃🏻") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment