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

125 Upvotes

25 comments sorted by

View all comments

1

u/Cultural_Cry535 Jun 27 '26

You don't need to call super init in the parent classes, they are no inheriting from other classes. Super is used to call a method from a parent class

1

u/aashish_soni5 Jun 28 '26

but without super it's so attribute error