Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created October 10, 2018 18:39
Show Gist options
  • Save vialyx/dca596cc285986905ae2fb486ea6a3b5 to your computer and use it in GitHub Desktop.
Save vialyx/dca596cc285986905ae2fb486ea6a3b5 to your computer and use it in GitHub Desktop.
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