A

Admin • 802.91K Points
Coach

Q. Let A and B be objects of class Foo. Which functions are called when print(A + B) is executed?

  • (A) __add__(), __str__()
  • (B) __str__(), __add__()
  • (C) __sum__(), __str__()
  • (D) __str__(), __sum__()
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.