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 dir() function is used in python?
What is os module will do in python?
What statement is used in python if the statement is required syntactically but no action is required for the program?
Where will you use while rather than for?
How do you clean pyc files?
What do you understand by *args and **kwarg python?
Since switch-case is not used in python – what are the replacements for switch statement in python?
What are the list methods in python?
What is GiL in python programming language?
What are the differences in the deep and shallow copy?
Write a program to create a class and make an object of the class in python?
What does truncate mean in python?
What does the function zip() do?
How to find the index of an item given a list containing it in python?
Explain about python break, continue and pass?