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 Dad { | |
func start() {} | |
deinit { print("Destroying \(String(describing: self))\n\n") } | |
func log(_ msg: String) { print(msg) } | |
func workSlow() { usleep(500) } | |
} | |
// The bad son will not finish the task | |
class BadSon: Dad { | |
override func start() { |