-
-
Save mike11339/0f92c25276b18edd5bcfbfc64a672f89 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 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