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