1. Home
  2. Data Science
  3. Python
  4. Which special method enables the + operator for a class in…

Added 25 Nov 2026

Which special method enables the + operator for a class in Python?

  1. __plus__
  2. __sum__
  3. __concat__
  4. __add__ Correct answer

Correct answer

D. __add__

5 views

MCQSEXAM

Explanation

__add__ implements addition.

Reference

Asked in: Python Interview OOP

https://docs.python.org/3/tutorial/classes.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs