Last active
December 27, 2018 14:43
-
-
Save imteekay/f2855b3bb7272776a7f098610f1a3fe6 to your computer and use it in GitHub Desktop.
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
tk = Person('TK', 'tk@mail.com') | |
print(tk.email()) # => tk@mail.com | |
# tk._email = 'new_tk@mail.com' -- treat as a non-public part of the class API | |
print(tk.email()) # => tk@mail.com | |
tk.update_email('new_tk@mail.com') | |
print(tk.email()) # => new_tk@mail.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment