Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 4)
4.
What is the purpose of the isinstance() function?
To check if an object is an instance of a specific class
To create a new instance of a class
To access class attributes directly
To call a method of the superclass
Answer: Option
Explanation:
The isinstance() function is used to determine if an object is an instance of a specified class or a tuple of classes.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.