C# Programming - Polymorphism - Discussion
Discussion Forum : Polymorphism - General Questions (Q.No. 1)
1.
Which of the following unary operators can be overloaded?
- true
- false
- +
- new
- is
Discussion:
9 comments Page 1 of 1.
Shree said:
1 decade ago
It is not possible to overload member access, method invocation, or the =, &&, ||, ?:, checked, unchecked, new, typeof, as, and is operators.
Suchi jain said:
10 years ago
In this option true, false, new, is, not a operators. Only one operator is there unary (+) which we can overloaded. So answer + is right.
Veyronash said:
1 decade ago
Only the unary, binary and comparison operators can be overloaded.
Keeping in mind that the comparison operators occur in pairs.
Keeping in mind that the comparison operators occur in pairs.
Sundar said:
1 decade ago
C# Operator overloading:
http://msdn.microsoft.com/en-us/library/aa691324(v=vs.71).aspx
http://msdn.microsoft.com/en-us/library/aa691324(v=vs.71).aspx
(2)
Vladimir said:
6 years ago
Are "true" and "false" unary operators in C#? Please tell me.
Nagarjuna said:
8 years ago
Answere 3 is right. Because in the question asked Unary.
Midhun Sankar said:
1 decade ago
New and is are keywords not operators
RaviKhagga said:
6 years ago
True, false -> unary operators.
Lew said:
7 years ago
True, false are unary.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers