Created
October 27, 2014 02:42
-
-
Save ybur-yug/57c8f658cc2656163f7d 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 Nerd: | |
def __init__(self): | |
self.habits = 'philosophy' | |
class Kendall(Nerd): | |
def __init__(self, name, email): | |
self.name = name | |
self.email = email | |
def name_and_email(): | |
return name + email | |
man = Kendall() | |
man.habits | |
#=> 'philosophy' | |
man.name_and_email() | |
#=> 'name email' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment