- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpay.py
More file actions
Latest commit
18 lines (14 loc) · 399 Bytes
/
Copy pathpay.py
File metadata and controls
18 lines (14 loc) · 399 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
classPay:
def__init__(self,name,age,pay):
self.name=name
self.age=age
self.pay=pay
defcetak(self):
returnf'nama {self.name} bayaran {self.pay}'
deftambahan(self):
self.pay=self.pay*2
employee=Pay("Marcell","16",150000)
manager=Pay("Richard","16",200000)
print(employee.cetak())
manager.tambahan()
print(manager.cetak())