Skip to content

Instantly share code, notes, and snippets.

@jonascheng
Created June 9, 2019 02:47
Show Gist options
  • Save jonascheng/73ad343189ec392f9c1137a1f3615303 to your computer and use it in GitHub Desktop.
Save jonascheng/73ad343189ec392f9c1137a1f3615303 to your computer and use it in GitHub Desktop.
SOLID-SalesPersonClass
class SalesPerson(Employee):
@property
def bonus(self):
return self._bonus
@bonus.setter
def bonus(self, bonus):
self._bonus = bonus
@property
def wage(self):
return self._hourly_rate * self._labor_hours + self._bonus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment