Jump to content
Sign in to follow this  
mfogar01

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...