Skip to content

Instantly share code, notes, and snippets.

@timothycrosley
Created May 4, 2016 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 "noemailset@domaintools.com"
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