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.
Shailendra said:
10 years ago
Except of this operator all operator can be overload.
?: (conditional).
. (member selection).
.* (member selection with pointer-to-member).
:: (scope resolution).
sizeof (object size information).
typeid (object type information).
?: (conditional).
. (member selection).
.* (member selection with pointer-to-member).
:: (scope resolution).
sizeof (object size information).
typeid (object type information).
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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers