Skip to content

Instantly share code, notes, and snippets.

@rdcoder33
Created December 28, 2018 04:13
Show Gist options
  • Save rdcoder33/5211ed4c2904d18737a57ea22f298bc8 to your computer and use it in GitHub Desktop.
Save rdcoder33/5211ed4c2904d18737a57ea22f298bc8 to your computer and use it in GitHub Desktop.
class Shape:
def area(self):
pass
def perimeter(self):
pass
class Square(Shape):
def __init__(self, side):
self.side = side
def area(self):
return self.side ** 2
shape_obj = Shape()
square_obj = Square(5)
print(square_obj.area())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment