Uploaded OOP files

This commit is contained in:
Joe James
2018-10-18 18:44:25 -07:00
committed by GitHub
parent 81616784a9
commit effc917b5f
3 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class Shape:
def __init__(self, color=None):
self.color = color
def get_color(self):
return self.color
def __str__(self):
return self.get_color() + ' Shape'