C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 37)
37.
Which of the following is correct about the statements given below?
  1. All operators can be overloaded in C++.
  2. We can change the basic meaning of an operator in C++.
Only I is true.
Both I and II are false.
Only II is true.
Both I and II are true.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
20 comments Page 2 of 2.

Shivam said:   1 decade ago
We can easily change the meaning of an operator in C++ but don't do so because its not desireable.

Chandu said:   1 decade ago
Some operators like sizeof, . , :?, ::, * are cannot be overloaded and we cannot change the basic functionality of an operator.

Harsh Vardhan Verma said:   1 decade ago
We can not change the behavior of the operator example the operators / * + - , follow the BODMAS rules with their default priorities.

Mayur Fadadalia said:   1 decade ago
We can easily change the behavior of operator in c++.

PARVESH said:   1 decade ago
1)All the operators can not be overloaded such as(::,.,# etc.)
and also

2)Basic meaning is not changeable of any operator.

3)But same operator can exhibit different behavior.

Yogesh soni said:   1 decade ago
1)we can not overload membership operator(.),turnery operator(: ?),scope resolution operator(::)and sizeof operator.

2)We can't change the basic meaning of an operator which to be overloaded.

Amit Kumar Singh said:   1 decade ago
We can't change the basic meaning of an operator which to be overloaded.

Ankit Dubey said:   1 decade ago
But we can change the basic meaning of the operator which to be overloaded.

Alok kumar said:   1 decade ago
Only we can increase the function of operator not change the basic meaning of operator.

Sekhar said:   1 decade ago
Some of the operators not possible to overload ex: #, ##
We cannot change the meaning of the opeator, we can define behavior


Post your comments here:

Your comments will be displayed after verification.