OOP Workshop
Get Color Method
def getColor(self):
return self.buttonColor
Each button may have a different color stored as an instance variable and the getColor(self)
method can be used to obtain that value to output the relevant color.