πŸ“Š Python
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__()
πŸ’¬ Discuss
βœ… Correct Answer: (A) __add__(), __str__()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
278
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
86%
Success Rate