

McqMate
Q. |
If a class defines the str (self) method, for an object obj for the class, you can use which command to invoke the str method. |
A. | obj. str () |
B. | str(obj) |
C. | print obj |
D. | all of the mentioned |
Answer» D. all of the mentioned | |
Explanation: execute in shell to verify. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet