Created
July 11, 2020 15:38
-
-
Save highsmallxu/9fe2c0b48b9ea5236bc7981422fbc4ff 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