Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def set_price(self, p):
- self.__price = p
- #methods or operator for class
- #getOrderPrice
- #dTotalPrice
- #getOrderWeightInOunces
- #iTotalWeight
- def dTotalPrice (self):
- getOrderPrice =
- return getOrderPrice
- def iTotalWeight (self):
- getOrderWeightInOunces =
- return getOrderWeightInOunces
- def __str__(self):
- TStr = " "
- TStr += "Total price is " + str(self.dTotalPrice) + "\n"
- TStr += "Total weight " + str(self.iTotalWeight) + "\n"
- return TStr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement