Created
May 26, 2019 16:14
-
-
Save boudhayan/7b0054d199bfafa5148c3ba3344e5012 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 Company: NSCopying { | |
| var name: String = "Confidential" | |
| func copy(with zone: NSZone? = nil) -> Any { | |
| let copy = Company() | |
| copy.name = name | |
| return copy | |
| } | |
| deinit { | |
| print("Deinitializing Company") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment