Last active
June 8, 2019 15:08
-
-
Save jonascheng/39a663a438b1afd82d319bb3ee55794b to your computer and use it in GitHub Desktop.
SOLID-EmployPrintClass
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 EmployeePrinterForHR: | |
def printCSV(employee: Employee): | |
print(u'{},{},{}'.format(employee.first_name, employee.last_name, employee.wage)) | |
class EmployeePrinterForIT: | |
def printCSV(employee: Employee): | |
print(u'{},{},{}'.format(employee.first_name, employee.last_name, employee.birth)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment