'''
Created on Aug 2, 2017

@author: SummitWorks
'''
class Cup:
    def __init__(self):
        self.color = None
        self.content = None

    def fill(self, beverage):
        self.content = beverage

    def empty(self):
        self.content = None
redCup = Cup()
redCup.color = "red"
redCup.content = "tea"
print(redCup.content)

redCup.empty()
print(redCup.content)

redCup.fill("coffee")
print(redCup.color)
print(redCup.content) #All of this is good and acceptable, because all the attributes and methods are public.

