Last active
December 26, 2018 03:43
-
-
Save rdcoder33/074a6e4e62a90a6c9148991f366a62b4 to your computer and use it in GitHub Desktop.
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 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