-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder_class.py
More file actions
30 lines (22 loc) · 821 Bytes
/
Order_class.py
File metadata and controls
30 lines (22 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from Good_class import Good
class Order:
def __init__(self,name_of_client,number):
"""[this class is for ordering good]
Args:
name_of_client ([str]): [name of user ]
number ([int]): [number of a good that want to order]
"""
self.name_of_client = name_of_client
self.good_list = []
self.number = number
self.bill=[]
def add_good(self,g:Good):
"""[summary]
Args:
g (Good): [object of good]
"""
print("This method is going to add a chosen good for a user in its sabade kharid")
def calculate_bill(self):
print('this method can calculate the bill')
def show_bill(self):
print('this method is going to show the bill of client')