Created
June 9, 2019 02:47
-
-
Save jonascheng/73ad343189ec392f9c1137a1f3615303 to your computer and use it in GitHub Desktop.
SOLID-SalesPersonClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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