Created
December 26, 2018 02:52
-
-
Save rdcoder33/090b2f96e798f8213975fba9732f4cbe to your computer and use it in GitHub Desktop.
By Raj Dhakad(RD)
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: | |
def __init(self, first, last, emp_id): | |
self.first = first | |
self.last = last | |
self.employee_id = emp_id | |
def employee_name(self): | |
return f'{self.firstname} {self.lastname}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment