Skip to content

Instantly share code, notes, and snippets.

@highsmallxu
Created July 11, 2020 15:38
Show Gist options
  • Save highsmallxu/9fe2c0b48b9ea5236bc7981422fbc4ff to your computer and use it in GitHub Desktop.
Save highsmallxu/9fe2c0b48b9ea5236bc7981422fbc4ff to your computer and use it in GitHub Desktop.
class Teacher(Job):
def __init__(self, person_name, school):
super().__init__(person_name)
self.school = school
def task(self):
print("working")
teacher = Teacher2("xiaoxu", "TU delft")
print(teacher.school)
# TU delft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment