classStudent: def__init__(self, name): self.name = name
defself_introduce(self): print(f'I am {self.name}.')
classNewStudent(Student): def__init__(self,name): super(NewStudent, self).__init__(name) self.name=name defself_introduce(self): print(f'My name is {self.name}1. Nice to meet you!')
defnew_self_introduce(self): print(f'My name is {self.name}2. Nice to meet you!')
defset_self_introduce(self): print(f'My name is {self.name}3. Nice to meet you!')