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.
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)
Midhun Sankar said:
1 decade ago
New and is are keywords not operators
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.
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.
Suchi jain said:
9 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.
Nagarjuna said:
8 years ago
Answere 3 is right. Because in the question asked Unary.
Lew said:
7 years ago
True, false are unary.
Vladimir said:
6 years ago
Are "true" and "false" unary operators in C#? Please tell me.
RaviKhagga said:
5 years ago
True, false -> unary operators.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers