Skip to content

Instantly share code, notes, and snippets.

@ybur-yug
Created October 27, 2014 02:42
Show Gist options
  • Save ybur-yug/57c8f658cc2656163f7d to your computer and use it in GitHub Desktop.
Save ybur-yug/57c8f658cc2656163f7d to your computer and use it in GitHub Desktop.
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