Skip to content

Instantly share code, notes, and snippets.

@timothycrosley
Created May 4, 2016 23:22
Show Gist options
  • Save timothycrosley/4c27a39da409147cee6120ade5b8bca4 to your computer and use it in GitHub Desktop.
Save timothycrosley/4c27a39da409147cee6120ade5b8bca4 to your computer and use it in GitHub Desktop.
# Classes
class Person(object):
def contact(self):
self.email()
self.call()
def email(self):
pass
def call(self):
pass
class DomainToolsEmployee(Person):
def email(self):
return "[email protected]"
def call(self):
return "555-555-5555"
class Tim(DomainToolsEmployee):
def call(self):
return "410-212-7618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment