-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompany_using_oops.py
More file actions
36 lines (33 loc) · 860 Bytes
/
company_using_oops.py
File metadata and controls
36 lines (33 loc) · 860 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
31
32
33
34
class employees:
company="Teleperformance"
salary="300"
# def printcompany(self):
# print(f"{self.name} company name is {self.company} ")
# Bhupendra=employees()
# maya=employees()
# nilu=employees()
# maya.name="maya yadav"
# # upendra.name="Upendra yadav"
# nilu.name="nilu yadav"
# Bhupendra.name="Bhupendra yadav"
# # maya.name="maya yadav"
# maya.company="Teleperformance"
# nilu.company="Teleperformance"
# Bhupendra.company="Teleperformance"
# employees.company="element"
# maya.printcompany()
# nilu.printcompany()
# Bhupendra.printcompany()
# upendra=employees()
# print(upendra.company)
# mayayadav=employees()
# a=input("enter the name of user:\n")
# a=employees()
# print(a.company)
# employees.company="google"
# a=employees()
# print(a.company)
harry=employees()
harry.salary="500"
print(harry.company)
print(harry.salary)