Skip to content

Instantly share code, notes, and snippets.

@jonascheng
Last active June 8, 2019 15:08
Show Gist options
  • Save jonascheng/39a663a438b1afd82d319bb3ee55794b to your computer and use it in GitHub Desktop.
Save jonascheng/39a663a438b1afd82d319bb3ee55794b to your computer and use it in GitHub Desktop.
SOLID-EmployPrintClass
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