Last active
September 8, 2018 17:38
-
-
Save imteekay/668568afcad2b59c2432aea78e651b61 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
class Person: | |
def __init__(self, first_name, email): | |
self.first_name = first_name | |
self._email = email | |
def update_email(self, new_email): | |
self._email = new_email | |
def email(self): | |
return self._email |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment