Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

That’s not multiple inheritance - that’s multiple levels of inheritance. Multiple inheritance is class C(A,B): pass
- Gah
Whenever I use super().__init__( *args ) I’m greeted with the error TypeError: object.__init__() takes no parameters. Please help. I need to know why this happens and how to prevent it.
- Seth
Person.__init__(self, student_name, student_age) super().__init__(student_name, student_age) calling parent class using ‘super()’, no need to specify ‘self’. Please explain the reason.
- Arun
why this is not working class FrameApp(Frame): def __init__(self,master): super(FrameApp,self).__init__(master)
- klenexb
Hi, Can you explain the submethod execution flow Printing from class C: 1 Printing from class B: 2 Printing from class A: 3 if the submethod of C is executing first, Output should be : Printing from class C: 1 Since def sub_method(self, b): print(‘Printing from class C:’, b) super().sub_method(b + 1) Plzz Explain
- Ajay
Greetings, Please revisit your example code on page: https://www.journaldev.com/15911/python-super i.e., your definition of class Person uses class scope variable definitions that are not subsequently used. class Person: # initializing the variables name = “” <<<<<this is class scope age = 0 <<<<<this is class scope The same is true for class student: class Student(Person): studentId = “” <<<<<this is class scope cheers!
- Robert Cox