Sep-15-2018, 08:09 PM
volcano63 pointed out why your use of class attributes is a problem. If you want to set it up that a store where the name is specified is called a lemonade stand by default, use defaults in the paramters to the __init__ method:
def __init__(self, StoreName = 'Lemonade Stand', StoreCost = 3, StoreProfit = 1.5):If left out StoreCount, because that sounds like something that should be a class attribute, one that is incremented every time __init__ is called.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures