Last active
February 6, 2017 07:10
-
-
Save shabib87/75be3b6edca66462625d0de8f1902bc2 to your computer and use it in GitHub Desktop.
In support to blog post https://codewithshabib.com/2017/02/05/introduction-to-strategy-pattern/
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
class SmartCar { | |
func driveOnRoad() { | |
print("Vroom!") | |
} | |
func talk() { | |
print("Hi! I am the smart talking car!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment