Correct method to define + operator is? A. public sample operator

correct-method-to-define-operator-is-a-public-sample-operator

Correct method to define + operator is?

A. public sample operator +(int a, int b)

B. public abstract operator +(int a, int b)

C. public static sample operator  +(int a, int b)

D. public abstract sample operator +(int a, int b)

This question was addressed to me in an online quiz.

Query is from Introduction of Overloaded Operators topic in division Object Oriented Concepts of C#

The correct choice is C. public static sample operator  +(int a, int b)

Explanation: None.