Skip to content

Instantly share code, notes, and snippets.

@tolufakiyesi
Created February 11, 2017 21:37
Show Gist options
  • Save tolufakiyesi/838b31e07d47af6b0c1a862bf453a99f to your computer and use it in GitHub Desktop.
Save tolufakiyesi/838b31e07d47af6b0c1a862bf453a99f to your computer and use it in GitHub Desktop.
class Human():
"""
This is the super class all other classes inherit from
"""
def __init__(self):
def sex(self, sex):
self.sex = sex
def age(self, age):
self.age = age
def is_alive():
self.is_alive = is_alive
def is_useful():
self.is_Useful = is_Useful
def is_parent():
self.is_Parent = is_Parent
def is_grand_parent():
self.is_Grand_Parent = is_Grand_Parent
def is_child():
self.is_Child = is_Child
class GrandParent(Human):
def __init__():
pass
def is_parent(self):
self.is_parent = True
def is_grand_parent(self):
self.is_grand_parent = True
class Parent(Human, GrandParent):
def __init__():
pass
class Child(Human, GrandParent, Parent):
def __init__():
pass
class Family(Parent, GrandParent, Child):
def __init__(grandparent, parent, child):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment