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
Tell us what is module and package in python?
Explain garbage collection with python?
What does while 1 mean in python?
What happens if we do not handle an error in the except block?
How dir() function is used in python?
What does the *args do in python?
What do you mean by list comprehension?
How can you pick a random item from a list or tuple in python?
What is the process of compilation and loading in python?
What is break in python?
Explain important characteristics of python objects?
Can we override a constructor?
Explain the database connection in python flask?
How can we make forms in python?
What is decorator in python?