What are the different types of inheritance in Python?
Answer Posted / nashiinformaticssolutions
Single inheritance: A derived class acquires the members of a single superclass.
many inheritance: A derived class inherits traits from many base classes.
Muti-level inheritance: base1 is the source of the derived class D1, whereas base2 is the source of D2.
Any child class can be inherited from a single base class using hierarchical inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How is Python used in web development?
How can I force division to be floating point in python?
Can you make a website with python?
What are “special” methods in python?
How is inheritance and overriding methods are related in python?
Is python as powerful as c++?
Name some of the features of python?
Explain global and local variables in python?
What does time sleep do in python?
What are literals in python?
How do I stop a python script?
Is python completely free?
What functions or methods will you use to delete a file in python?
What does super () do python?
What is difference between range and arange function in python?