What are the different types of inheritance in Python?
Answer Posted / glibwaresoftsolutions
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 to make any variable private in python ?
What is a cast in python?
In which field python is used?
What is subclass in python?
What is hashmap in python?
Since switch-case is not used in python – what are the replacements for switch statement in python?
How will you get a 10 digit zero-padded number from an original number?
How to split a string into a list?
What is an f string in python?
Why is numpy so fast?
Is there a switch or case statement in python? If not then what is the reason for the same?
Explain tkinter in python
What is hierarchical inheritance?
What does a continue statement do in python?
Is print a function in python 3?