Skip to content

Instantly share code, notes, and snippets.

@rdcoder33
Last active December 26, 2018 03:43
Show Gist options
  • Save rdcoder33/074a6e4e62a90a6c9148991f366a62b4 to your computer and use it in GitHub Desktop.
Save rdcoder33/074a6e4e62a90a6c9148991f366a62b4 to your computer and use it in GitHub Desktop.
class Person:
def __init__(self, first, last):
self.firstname = first
self.lastname = last
def name(self):
return f'{self.firstname} {self.lastname}'
class Employee(Person):
def __init(self, first, last, emp_id):
super().__init__(first, last)
self.employee_id = emp_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment