Created
July 12, 2017 09:59
-
-
Save mayooresan/6de9e1473049fadaaf2e587560512e90 to your computer and use it in GitHub Desktop.
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 Cat : Animal, Eye{ | |
var isIdle: Bool? = true | |
func run() { | |
print("Cat is running now") | |
} | |
func stop() { | |
print("Cat has stopped now") | |
} | |
func closeEyesAndSleep() { | |
print("Cat is sleeping now") | |
} | |
func openEyesAndLookAround() { | |
print("Cat is looking around") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment