Python Programming - Polymorphism - Discussion
Discussion Forum : Polymorphism - General Questions (Q.No. 21)
21.
What is the purpose of the
__str__()
method in Python classes in the context of polymorphism?
Answer: Option
Explanation:
The
__str__()
method is used to represent the object as a string for display purposes, providing a human-readable representation.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers