Created
October 10, 2018 18:39
-
-
Save vialyx/dca596cc285986905ae2fb486ea6a3b5 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
class AudioPlayer: Player { | |
// Overriding Property Observers | |
override var playing: Bool { | |
didSet { | |
print("\(self) did set playing") | |
} | |
} | |
// Overriding Methods | |
override func restore(playing: Bool) { | |
print("\(self) restore playing: \(playing)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment