Jump to content

Python Inheritance: Description Of 'Super' Questionable


Recommended Posts

In the description of the 'super' function, the following statement is made:

"Python also has a super() function that will make the child class inherit all the methods and properties from its parent:"

This does not sound correct to me but I may be misunderstanding so I am looking for comments. My understanding is that the use of the super() function call does not cause the class to inherit all the methods and parents from its parent. It has already done so by placing the name of the parent class in between the brackets in the class statement. Doesn't super() just allow you to invoke methods and properties from the parent class without referring to it explicity?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...