Question OOP-POLY-0032
EasyIn Python, which special method gives the text that print(obj) shows?
- A.
text
- B.
show
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Polymorphism question
In Python, which special method gives the text that print(obj) shows?
text
show
Sign up free to see the answer and a step-by-step explanation.
str