AI engineering glossary · Python advanced
What is super()?
super(): A built-in that returns a proxy for the next class in the method resolution order, letting a subclass call a parent's version of a method. It is most often used to run the parent's __init__ before adding extra setup.
super(): an example
def __init__(self, name, salary): super().__init__(name); self.salary = salary reuses the parent's name handling.
Related terms
More Python advanced terms
Where you learn it
super() is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.