Created
October 15, 2018 03:36
-
-
Save vialyx/19a64226de62a86e50ce27360ff7e090 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
extension CreditCard { | |
mutating func clear() { | |
self.number = "" | |
self.date = "" | |
self.name = "" | |
self.ccv = "" | |
} | |
} | |
var expiredCard = CreditCard(number: "4111 0000 0000 0000", date: "03/03", ccv: "003") | |
expiredCard.clear() | |
print("expired card info: \(expiredCard.info())") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment