C# Programming - Polymorphism - Discussion

Discussion :: Polymorphism - General Questions (Q.No.10)

10. 

Which of the following statements is correct?

[A]. The conditional logical operators cannot be overloaded.
[B]. When a binary operator is overloaded the corresponding assignment operator, if any, must be explicitly overloaded.
[C]. We can use the default equality operator in an overloaded implementation of the equality operator.
[D]. A public or nested public reference type does not overload the equality operator.
[E]. The array indexing operator can be overloaded.

Answer: Option A

Explanation:

No answer description available for this question.

Divya said: (Sep 17, 2014)  
How can equality operator can be represented?

Mohammad Amir Suhel said: (Dec 23, 2014)  
&&, ||.

The conditional logical operators cannot be overloaded, but they are evaluated using & and |, which can be overloaded.

Anon said: (Aug 28, 2017)  
The array indexing operator can be overloaded - this is also correct?

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.