Skip to content

Instantly share code, notes, and snippets.

@ryanpitts
Last active August 29, 2015 13:59
Show Gist options
  • Save ryanpitts/10692666 to your computer and use it in GitHub Desktop.
Save ryanpitts/10692666 to your computer and use it in GitHub Desktop.
Brussia and Braveison projects
class Ball(object):
def __init__(self, size, color):
self.size = size
self.color = color
self.shape = 'spherical'
class ImaginaryBallCreature(Ball):
def __init__(self, size, color, requires_brushing, has_been_photographed):
Ball.__init__(self, size, color)
self.is_imaginary = True
self.requires_brushing = requires_brushing
self.has_been_photographed = has_been_photographed
class Braveison(ImaginaryBallCreature):
def __init__(self):
ImaginaryBallCreature.__init__(self, 'humongous', 'pink', True, True)
class Brussia(ImaginaryBallCreature):
def __init__(self):
ImaginaryBallCreature.__init__(self, 'humongous', 'blue', True, False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment