
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How does issubclass() function work in Python?
We can derive a class from multiple parent classes as follows −
class A: # define your class A ..... class B: # define your class B ..... class C(A, B): # subclass of A and B .....
We can use issubclass() function to check the relationships of two classes and instances.
For example, the
issubclass(sub, sup)
boolean function returns true if the given subclass sub is indeed a subclass of the superclass sup.
- Related Questions & Answers
- How does isinstance() function work in Python?
- How does MySQL IF() function work?
- How does recursion function work in JavaScript?
- How does the bin2hex() function work in PHP?
- How does Python while loop work?
- How does mkdir -p work in Python?
- How does garbage collection work in Python?
- How does class inheritance work in Python?
- How does Overloading Operators work in Python?
- How does ++ and -- operators work in Python?
- How does tuple comparison work in Python?
- How does Python dictionary keys() Method work?
- How does MySQL QUOTE() function work with comparison values?
- How does variable scopes work in Python Modules?
- How does [\d+] regular expression work in Python?
Advertisements