What are the different types of inheritance in Python?
Answer Posted / hr@tgksolutions.com
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
Do you know the number of keywords in python?
How do you check if a string contains a substring in python?
How do you append to a file in python?
What happens in the background when you run a python file?
How do I start python on windows?
Explain me what is the purpose of doc strings in python?
Explain python’s parameter-passing mechanism?
What is python inheritance?
What is the sleeping time of giraffe?
Why python has no private?
How can you get the google cache age of any url or web page?
Explain split() and join() function.
Explain about the programming language python?
What are pandas in python?
Name some of the important modules that are available in python.