Created
August 16, 2015 08:50
-
-
Save GE-N/7402a757b9629d74c90d to your computer and use it in GitHub Desktop.
BDD#3 credit class
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 Credit { | |
var count: Int { | |
set { | |
// save newValue of credits to somewhere. | |
} | |
get { | |
return // credits value saved. | |
} | |
} | |
func decrease() { | |
var credit = self.count | |
self.count = credit - 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment