Python Programming, Python Data Structures, Oop Concepts, Learn Python, Python Interview.
inherits all of the original class’s properties and methods, but it can also add or override them. class Student(Person): def __init__(self, name, age, student_id): super().__init__(name, age) self.student_id = student_id def say_hello(self): print(f"Hello, my name is {self.name}, I'm {self.age}