class Employee:
    company = "Bharat Gas"
    salary = 5600
    salaryBonas = 500
    # totalSalary = 6100

    @property
    def totalSalary(self):
        return self.salary + self.salaryBonas

    @totalSalary.setter
    def totalSalary(self, val):
        self.salaryBonas = val - self.salary



e = Employee()
print(e.totalSalary)

e.totalSalary = 5800
print(e.totalSalary)
print(e.salary)
print(e.salaryBonas)
1b444c742fca9e13e1f0141ab675e4b7f1a68020
class Employee:
    <mask token>
    <mask token>
    <mask token>

    @property
    def totalSalary(self):
        return self.salary + self.salaryBonas
    <mask token>


<mask token>

class Employee:
    <mask token>
    <mask token>
    <mask token>

    @property
    def totalSalary(self):
        return self.salary + self.salaryBonas

    @totalSalary.setter
    def totalSalary(self, val):
        self.salaryBonas = val - self.salary


<mask token>

class Employee:
    company = 'Bharat Gas'
    salary = 5600
    salaryBonas = 500

    @property
    def totalSalary(self):
        return self.salary + self.salaryBonas

    @totalSalary.setter
    def totalSalary(self, val):
        self.salaryBonas = val - self.salary


<mask token>

class Employee:
    company = 'Bharat Gas'
    salary = 5600
    salaryBonas = 500

    @property
    def totalSalary(self):
        return self.salary + self.salaryBonas

    @totalSalary.setter
    def totalSalary(self, val):
        self.salaryBonas = val - self.salary


<mask token>
print(e.totalSalary)
<mask token>
print(e.totalSalary)
print(e.salary)
print(e.salaryBonas)

class Employee:
    company = "Bharat Gas"
    salary = 5600
    salaryBonas = 500
    # totalSalary = 6100

    @property
    def totalSalary(self):
        return self.salary + self.salaryBonas

    @totalSalary.setter
    def totalSalary(self, val):
        self.salaryBonas = val - self.salary



e = Employee()
print(e.totalSalary)

e.totalSalary = 5800
print(e.totalSalary)
print(e.salary)
print(e.salaryBonas)