Created
June 8, 2019 14:53
-
-
Save jonascheng/b65aafa0d447d62d590c4554d6f3bfe2 to your computer and use it in GitHub Desktop.
SOLID-EmployeeClassWithPrintMethods
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
import datetime | |
class Employee: | |
// ... | |
def printForHR(self): | |
print(u'{},{},{}'.format(self.first_name, self.last_name, self.wage)) | |
def printForIT(self): | |
print(u'{},{},{}'.format(self.first_name, self.last_name, self.birth)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment