Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Object-Oriented Python Inheritance Multiple Superclasses

Andras Andras
Andras Andras
8,230 Points

Why do not we need to use super() for Character class?

Hello,

Just a simple question. I did not get it. Could you please explain why do not we need to use super() for Character class but Agile and Sneaky require super().

So, because that is the final class that initialized? All final initialized can go without super(). Total confusion.

2 Answers

Yu-Che Hung
PLUS
Yu-Che Hung
Courses Plus Student 10,607 Points

But why Agile and Sneaky require super(). They are not subclasses of Character, right?

This is because Character class is the class where all inheritance ends (if you don't count the implicit inheritance from the master object class all classes inherit from). So since Character is the most base class and doesn't inherit from anywhere, then it doesn't take a super() method call from elsewhere.

Hope this helps.