Skip to content

Instantly share code, notes, and snippets.

@rdcoder33
Created December 26, 2018 02:52
Show Gist options
  • Save rdcoder33/090b2f96e798f8213975fba9732f4cbe to your computer and use it in GitHub Desktop.
Save rdcoder33/090b2f96e798f8213975fba9732f4cbe to your computer and use it in GitHub Desktop.
By Raj Dhakad(RD)
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