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.
745
0
Do you find this helpful?
10

Discussion

No comments yet