Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mike11339/0f92c25276b18edd5bcfbfc64a672f89 to your computer and use it in GitHub Desktop.
Save mike11339/0f92c25276b18edd5bcfbfc64a672f89 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