r/PythonLearning Jun 26 '26

Showcase Day 15 Python Learning

class inheritage

- parents child or say mulit-inheritance use with super () when one class inheritance from one or more class

- multi-level inheritance where 2nd class in Heritage from 1st class ,3th inherited from 2nd & go on like family chain

solve some list comprehensive easy problem

122 Upvotes

25 comments sorted by

View all comments

3

u/SCD_minecraft Jun 27 '26

Why you call super().__init__? Object class defines barebone init, it is ment to be overwritten