C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 41)
41.
Which of the following operators cannot be overloaded?
Discussion:
13 comments Page 2 of 2.
Prashant giri said:
8 years ago
-> pointer member selection operator also can not overloaded.
Vani said:
6 years ago
?: (conditional).
. (member selection).
.* (member selection with pointer-to-member).
:: (scope resolution).
sizeof (object size information).
typeid (object type information).
So, it can't be overloaded.
. (member selection).
.* (member selection with pointer-to-member).
:: (scope resolution).
sizeof (object size information).
typeid (object type information).
So, it can't be overloaded.
Md Hayatuddin said:
5 years ago
Can we overload -> operator?
Because it is similar to. (dot) operator.
Because it is similar to. (dot) operator.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers