Examveda

Correct way to define operator method or to perform operator overloading is?

A.

public static op(arglist)
{
 
}

B.

public static retval op(arglist)
{
 
}

C.

public static retval operator op(arglist)
{
 
}

D. All of the mentioned

Answer: Option C


Join The Discussion

Related Questions on Classes and Objects in C Sharp