MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-Python-Course / Employee

Class Employee

Chapter 11 - PS/03_problem3.py:1–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Employee:
2 salary = 234
3 increment = 20
4
5 @property
6 def salaryAfterIncrement(self):
7 return (self.salary + self.salary * (self.increment/100))
8
9 @salaryAfterIncrement.setter
10 def salaryAfterIncrement(self, salary):
11 self.increment = ((salary/self.salary) -1)*100
12
13
14

Callers 1

03_problem3.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected