answersLogoWhite

0

There are 5 operators which cannot be overloaded. They are:

* .* - class member access operator

* :: - scope resolution operator

* . - dot operator

* ?:: - conditional operator

* Sizeof() - operator Note:- This is possible only in C++.

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
More answers

The following C++ operators cannot be overloaded...

  • . Member selection
  • .* Pointer to member selection
  • :: Scope resolution
  • :> Base operator
  • ?: Conditional
  • # Preprocessor symbol
  • ## Preprocessor symbol
User Avatar

Wiki User

13y ago
User Avatar

No, java does not support explicit operator overloading. You can use an operator only for its intended purpose. But the "+" operator is implicitly overloaded. It can be used to add two numbers as well as concatenate two strings. Apart from this operator all other operators can be used only for their specific purpose.

User Avatar

Wiki User

15y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the operator that cannot be overloaded?
Write your answer...
Submit
Still have questions?
magnify glass
imp