Skip to content

Commit

Permalink
Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjanaPurbia authored Jul 22, 2021
1 parent ab1abe1 commit d0b0814
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions employee.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class employee:
count = 0
def __init__(self,name,sal):
self.name=name
self.sal=sal
employee.count+=1



emp1 = employee("sanjana",450000)
emp2=employee("sonu",35000)
#emp=employee("sanjana",50000)
emp3=employee("sonu",35000)
#Printing the values
print("{} has {} salary".format(emp1.name,emp1.sal))
print("{} has {} salary".format(emp2.name,emp2.sal))
print("total no of emp",employee.count)

0 comments on commit d0b0814

Please sign in to comment.